Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen authored and backportbot[bot] committed Nov 12, 2021
1 parent 1aaf9f0 commit 6ed9bcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/lib/User/SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ public function testUpdateAuthTokenLastCheck() {
$mapper->expects($this->any())
->method('getToken')
->willReturn($token);
$mapper->expects($this->once())
$mapper->expects($this->exactly(2))
->method('update');
$request
->expects($this->any())
Expand Down Expand Up @@ -1314,7 +1314,7 @@ public function testNoUpdateAuthTokenLastCheckRecent() {
$mapper->expects($this->any())
->method('getToken')
->willReturn($token);
$mapper->expects($this->never())
$mapper->expects($this->once())
->method('update');
$request
->expects($this->any())
Expand Down

0 comments on commit 6ed9bcc

Please sign in to comment.