Fix tests failures (number of calls differed with last rebase)

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2023-01-24 09:38:20 +01:00
parent 5b0f7f7501
commit 003cc2b45a
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
1 changed files with 15 additions and 15 deletions

View File

@ -249,7 +249,7 @@ class LoginControllerTest extends TestCase {
], ],
] ]
); );
$this->initialStateService->expects($this->exactly(10)) $this->initialStateService->expects($this->exactly(11))
->method('provideInitialState') ->method('provideInitialState')
->withConsecutive([ ->withConsecutive([
'core', 'core',
@ -260,19 +260,19 @@ class LoginControllerTest extends TestCase {
'This community release of Nextcloud is unsupported and push notifications are limited.', 'This community release of Nextcloud is unsupported and push notifications are limited.',
], ],
], ],
[
'core',
'loginErrors',
[ [
'ErrorArray1', 'core',
'ErrorArray2', 'loginErrors',
[
'ErrorArray1',
'ErrorArray2',
],
], ],
], [
[ 'core',
'core', 'loginUsername',
'loginUsername', '',
'', ]);
]);
$expectedResponse = new TemplateResponse( $expectedResponse = new TemplateResponse(
'core', 'core',
@ -291,7 +291,7 @@ class LoginControllerTest extends TestCase {
->expects($this->once()) ->expects($this->once())
->method('isLoggedIn') ->method('isLoggedIn')
->willReturn(false); ->willReturn(false);
$this->initialStateService->expects($this->exactly(11)) $this->initialStateService->expects($this->exactly(12))
->method('provideInitialState') ->method('provideInitialState')
->withConsecutive([], [], [], [ ->withConsecutive([], [], [], [
'core', 'core',
@ -362,7 +362,7 @@ class LoginControllerTest extends TestCase {
->method('get') ->method('get')
->with('LdapUser') ->with('LdapUser')
->willReturn($user); ->willReturn($user);
$this->initialStateService->expects($this->exactly(10)) $this->initialStateService->expects($this->exactly(11))
->method('provideInitialState') ->method('provideInitialState')
->withConsecutive([], [], [ ->withConsecutive([], [], [
'core', 'core',
@ -412,7 +412,7 @@ class LoginControllerTest extends TestCase {
->method('get') ->method('get')
->with('0') ->with('0')
->willReturn($user); ->willReturn($user);
$this->initialStateService->expects($this->exactly(10)) $this->initialStateService->expects($this->exactly(11))
->method('provideInitialState') ->method('provideInitialState')
->withConsecutive([], [], [], [ ->withConsecutive([], [], [], [
'core', 'core',