Skip to content

Commit 7e38ede

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 7e38ede

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/integration/Test.php

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

6666

6767
public function testAlternativeLogins() {
68-
self::assertEquals([
69-
[
70-
'name' => 'Login with nextcloudci',
71-
'href' => '/index.php/apps/user_oidc/login/1'
72-
]
73-
], OC_App::getAlternativeLogIns());
68+
$alternativeLogins = OC_App::getAlternativeLogIns();
69+
self::assertCount(1, $alternativeLogins);
70+
$alternativeLogin = $alternativeLogins[0];
71+
self::assertEquals('Login with nextcloudci', $alternativeLogin['name']);
72+
self::assertEquals('/index.php/apps/user_oidc/login/1', $alternativeLogin['href']);
7473
}
7574

7675
public function testLoginRedirect() {

0 commit comments

Comments
 (0)