summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-11-12 15:01:56 +0100
committerJoas Schilling <coding@schilljs.com>2021-11-12 15:01:56 +0100
commit265c2c125c8b4dcaea92c0fa33e0512243a2d404 (patch)
treefefa0c81c1fa7749a9ef44f5c370848a5e41786d /tests
parentccfaddf781d4d2c29994674ffeca4c6b58220ea4 (diff)
downloadnextcloud-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.php4
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())