Procházet zdrojové kódy

fix(tests): Fix remaining tests

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v29.0.0beta1
Joas Schilling před 5 měsíci
rodič
revize
2ee5c7a8f9
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 7 přidání a 1 odebrání
  1. 7
    1
      tests/Core/Controller/LoginControllerTest.php

+ 7
- 1
tests/Core/Controller/LoginControllerTest.php Zobrazit soubor

@@ -148,7 +148,7 @@ class LoginControllerTest extends TestCase {
$this->request
->expects($this->once())
->method('isUserAgent')
->willReturn(true);
->willReturn(false);
$this->config
->expects($this->never())
->method('deleteUserValue');
@@ -169,6 +169,9 @@ class LoginControllerTest extends TestCase {
->method('getCookie')
->with('nc_token')
->willReturn(null);
$this->request
->method('getServerProtocol')
->willReturn('https');
$this->request
->expects($this->once())
->method('isUserAgent')
@@ -189,6 +192,9 @@ class LoginControllerTest extends TestCase {
->method('getCookie')
->with('nc_token')
->willReturn('MyLoginToken');
$this->request
->method('getServerProtocol')
->willReturn('https');
$this->request
->expects($this->once())
->method('isUserAgent')

Načítá se…
Zrušit
Uložit