Skip to content

Commit

Permalink
Fix tests after slow logout fix
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Jan 8, 2024
1 parent dd82975 commit db11313
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Core/Controller/LoginControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,13 @@ public function testLogoutWithoutToken() {
->method('getCookie')
->with('nc_token')
->willReturn(null);
$this->request
->method('getServerProtocol')
->willReturn('https');
$this->request
->expects($this->once())
->method('isUserAgent')
->willReturn(false);
->willReturn(true);
$this->config
->expects($this->never())
->method('deleteUserValue');
Expand Down

0 comments on commit db11313

Please sign in to comment.