浏览代码

fix(tests): Fix remaining tests

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v29.0.0beta1
Joas Schilling 5 个月前
父节点
当前提交
2ee5c7a8f9
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7
    1
      tests/Core/Controller/LoginControllerTest.php

+ 7
- 1
tests/Core/Controller/LoginControllerTest.php 查看文件

@@ -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')

正在加载...
取消
保存