Skip to content

Commit

Permalink
fix(tests): Fix remaining tests
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen authored and skjnldsv committed Feb 22, 2024
1 parent c1ef86c commit 3decdd9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/Core/Controller/LoginControllerTest.php
Expand Up @@ -148,7 +148,7 @@ public function testLogoutWithoutToken() {
$this->request
->expects($this->once())
->method('isUserAgent')
->willReturn(true);
->willReturn(false);
$this->config
->expects($this->never())
->method('deleteUserValue');
Expand All @@ -169,6 +169,9 @@ public function testLogoutNoClearSiteData() {
->method('getCookie')
->with('nc_token')
->willReturn(null);
$this->request
->method('getServerProtocol')
->willReturn('https');
$this->request
->expects($this->once())
->method('isUserAgent')
Expand All @@ -189,6 +192,9 @@ public function testLogoutWithToken() {
->method('getCookie')
->with('nc_token')
->willReturn('MyLoginToken');
$this->request
->method('getServerProtocol')
->willReturn('https');
$this->request
->expects($this->once())
->method('isUserAgent')
Expand Down

0 comments on commit 3decdd9

Please sign in to comment.