Fix tests after slow logout fix

Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
Louis Chemineau 2024-01-08 17:30:29 +01:00 committed by John Molakvoæ
parent 7e7a4ddd5c
commit c1ef86cbdd

View file

@ -142,10 +142,13 @@ class LoginControllerTest extends TestCase {
->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');