diff options
author | Joas Schilling <coding@schilljs.com> | 2021-11-12 15:01:56 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-11-12 15:01:56 +0100 |
commit | 265c2c125c8b4dcaea92c0fa33e0512243a2d404 (patch) | |
tree | fefa0c81c1fa7749a9ef44f5c370848a5e41786d /tests | |
parent | ccfaddf781d4d2c29994674ffeca4c6b58220ea4 (diff) | |
download | nextcloud-server-265c2c125c8b4dcaea92c0fa33e0512243a2d404.tar.gz nextcloud-server-265c2c125c8b4dcaea92c0fa33e0512243a2d404.zip |
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()) |