Skip to content

Commit 1fbd299

Browse files
committed
fix(tests): the alternative login can have a 'class' attr if IAlternativeLogin is used
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent a534832 commit 1fbd299

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

tests/integration/Test.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,19 @@ private function cleanupUser(string $userId): void {
6565

6666

6767
public function testAlternativeLogins() {
68-
self::assertEquals([
68+
self::assertContains([
6969
[
70-
'name' => 'Login with nextcloudci',
71-
'href' => '/index.php/apps/user_oidc/login/1'
70+
[
71+
'name' => 'Login with nextcloudci',
72+
'href' => '/index.php/apps/user_oidc/login/1',
73+
]
74+
],
75+
[
76+
[
77+
'name' => 'Login with nextcloudci',
78+
'href' => '/index.php/apps/user_oidc/login/1',
79+
'class' => '',
80+
]
7281
]
7382
], OC_App::getAlternativeLogIns());
7483
}

0 commit comments

Comments
 (0)