Skip to content

Commit

Permalink
Fix languages dropdown unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Nov 13, 2024
1 parent 4ebce8a commit 95e9c16
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/Panel/Ui/Buttons/LanguagesDropdownTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ public function testOption()
$this->assertSame([
'text' => 'Deutsch',
'code' => 'de',
'link' => '/pages/test?language=de',
'current' => false,
'link' => '/pages/test?language=de'
'default' => false,
'changes' => false,
'lock' => false
], $button->option($language));
}

Expand Down Expand Up @@ -78,15 +81,21 @@ public function testOptionsMultiLang()
[
'text' => 'English',
'code' => 'en',
'link' => '/pages/test?language=en',
'current' => true,
'link' => '/pages/test?language=en'
'default' => true,
'changes' => false,
'lock' => false
],
'-',
[
'text' => 'Deutsch',
'code' => 'de',
'link' => '/pages/test?language=de',
'current' => false,
'link' => '/pages/test?language=de'
'default' => false,
'changes' => false,
'lock' => false
]
], $button->options());
}
Expand Down

0 comments on commit 95e9c16

Please sign in to comment.