Fix more controller tests in Core subdir
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
97c11ff48b
commit
a9a6f519fb
|
@ -75,8 +75,8 @@ class AutoCompleteControllerTest extends TestCase {
|
||||||
],
|
],
|
||||||
// expected
|
// expected
|
||||||
[
|
[
|
||||||
[ 'id' => 'alice', 'label' => 'Alice A.', 'source' => 'users'],
|
[ 'id' => 'alice', 'label' => 'Alice A.', 'icon' => '', 'source' => 'users', 'status' => '', 'subline' => ''],
|
||||||
[ 'id' => 'bob', 'label' => 'Bob Y.', 'source' => 'users'],
|
[ 'id' => 'bob', 'label' => 'Bob Y.', 'icon' => '', 'source' => 'users', 'status' => '', 'subline' => ''],
|
||||||
],
|
],
|
||||||
'',
|
'',
|
||||||
'files',
|
'files',
|
||||||
|
@ -96,8 +96,8 @@ class AutoCompleteControllerTest extends TestCase {
|
||||||
],
|
],
|
||||||
// expected
|
// expected
|
||||||
[
|
[
|
||||||
[ 'id' => 'alice', 'label' => 'Alice A.', 'source' => 'users'],
|
[ 'id' => 'alice', 'label' => 'Alice A.', 'icon' => '', 'source' => 'users', 'status' => '', 'subline' => ''],
|
||||||
[ 'id' => 'bob', 'label' => 'Bob Y.', 'source' => 'users'],
|
[ 'id' => 'bob', 'label' => 'Bob Y.', 'icon' => '', 'source' => 'users', 'status' => '', 'subline' => ''],
|
||||||
],
|
],
|
||||||
'',
|
'',
|
||||||
null,
|
null,
|
||||||
|
@ -117,8 +117,8 @@ class AutoCompleteControllerTest extends TestCase {
|
||||||
],
|
],
|
||||||
// expected
|
// expected
|
||||||
[
|
[
|
||||||
[ 'id' => 'alice', 'label' => 'Alice A.', 'source' => 'users'],
|
[ 'id' => 'alice', 'label' => 'Alice A.', 'icon' => '', 'source' => 'users', 'status' => '', 'subline' => ''],
|
||||||
[ 'id' => 'bob', 'label' => 'Bob Y.', 'source' => 'users'],
|
[ 'id' => 'bob', 'label' => 'Bob Y.', 'icon' => '', 'source' => 'users', 'status' => '', 'subline' => ''],
|
||||||
],
|
],
|
||||||
'',
|
'',
|
||||||
'files',
|
'files',
|
||||||
|
@ -138,8 +138,8 @@ class AutoCompleteControllerTest extends TestCase {
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
[ 'id' => 'bob', 'label' => 'Bob Y.', 'source' => 'users'],
|
[ 'id' => 'bob', 'label' => 'Bob Y.', 'icon' => '', 'source' => 'users', 'status' => '', 'subline' => ''],
|
||||||
[ 'id' => 'bobby', 'label' => 'Robert R.', 'source' => 'users'],
|
[ 'id' => 'bobby', 'label' => 'Robert R.', 'icon' => '', 'source' => 'users', 'status' => '', 'subline' => ''],
|
||||||
],
|
],
|
||||||
'bob',
|
'bob',
|
||||||
'files',
|
'files',
|
||||||
|
|
|
@ -440,6 +440,7 @@ class LoginControllerTest extends TestCase {
|
||||||
->with('core.login.showLoginForm', [
|
->with('core.login.showLoginForm', [
|
||||||
'user' => $user,
|
'user' => $user,
|
||||||
'redirect_url' => '/apps/files',
|
'redirect_url' => '/apps/files',
|
||||||
|
'direct' => 1,
|
||||||
])
|
])
|
||||||
->willReturn($loginPageUrl);
|
->willReturn($loginPageUrl);
|
||||||
$expected = new \OCP\AppFramework\Http\RedirectResponse($loginPageUrl);
|
$expected = new \OCP\AppFramework\Http\RedirectResponse($loginPageUrl);
|
||||||
|
@ -597,6 +598,7 @@ class LoginControllerTest extends TestCase {
|
||||||
->with('core.login.showLoginForm', [
|
->with('core.login.showLoginForm', [
|
||||||
'user' => 'john@doe.com',
|
'user' => 'john@doe.com',
|
||||||
'redirect_url' => '/apps/files',
|
'redirect_url' => '/apps/files',
|
||||||
|
'direct' => 1,
|
||||||
])
|
])
|
||||||
->willReturn($loginPageUrl);
|
->willReturn($loginPageUrl);
|
||||||
$expected = new \OCP\AppFramework\Http\RedirectResponse($loginPageUrl);
|
$expected = new \OCP\AppFramework\Http\RedirectResponse($loginPageUrl);
|
||||||
|
|
Loading…
Reference in New Issue