Browse Source
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/29682/head
Joas Schilling
5 years ago
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with
2 additions and
2 deletions
-
tests/lib/User/SessionTest.php
|
|
|
@ -1264,7 +1264,7 @@ class SessionTest extends \Test\TestCase { |
|
|
|
$mapper->expects($this->any()) |
|
|
|
->method('getToken') |
|
|
|
->willReturn($token); |
|
|
|
$mapper->expects($this->once()) |
|
|
|
$mapper->expects($this->exactly(2)) |
|
|
|
->method('update'); |
|
|
|
$request |
|
|
|
->expects($this->any()) |
|
|
|
@ -1314,7 +1314,7 @@ class SessionTest extends \Test\TestCase { |
|
|
|
$mapper->expects($this->any()) |
|
|
|
->method('getToken') |
|
|
|
->willReturn($token); |
|
|
|
$mapper->expects($this->never()) |
|
|
|
$mapper->expects($this->once()) |
|
|
|
->method('update'); |
|
|
|
$request |
|
|
|
->expects($this->any()) |
|
|
|
|