diff options
author | Joas Schilling <coding@schilljs.com> | 2021-11-12 17:01:56 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-11-12 17:52:38 +0300 |
commit | 6ed9bccb3d4ad0a5f212df8047c181063a4483dc (patch) | |
tree | 348cb5ccaad3ccdda7c2ba3e33b172e9b5d37ef8 /tests | |
parent | 1aaf9f02a868b5e98e9dc6ac65ebaaaf0ad97f18 (diff) |
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/User/SessionTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/User/SessionTest.php b/tests/lib/User/SessionTest.php index 8f72ba06b92..334c3d9065f 100644 --- a/tests/lib/User/SessionTest.php +++ b/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()) |