]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix unit tests 29684/head
authorJoas Schilling <coding@schilljs.com>
Fri, 12 Nov 2021 14:01:56 +0000 (15:01 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 12 Nov 2021 14:49:38 +0000 (14:49 +0000)
Signed-off-by: Joas Schilling <coding@schilljs.com>
tests/lib/User/SessionTest.php

index 8f72ba06b92187505ee1540f042f4424669a5c4a..334c3d9065fa11e9c74154224c21900ac24401f9 100644 (file)
@@ -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())