Skip to content

Commit

Permalink
Merge pull request cypht-org#1170 from Yannick243/fix-traditional-chi…
Browse files Browse the repository at this point in the history
…nese-tests

Fix failing tests after adding traditional Chinese translation
  • Loading branch information
marclaporte authored Aug 14, 2024
2 parents 65e7dd2 + 8b7ae4a commit eae614c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/phpunit/modules/core/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function setUp(): void {
* @runInSeparateProcess
*/
public function test_interface_langs() {
$this->assertEquals(16, count(interface_langs()));
$this->assertEquals(17, count(interface_langs()));
}
/**
* @preserveGlobalState disabled
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/modules/core/output_modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ public function test_language_setting() {
$test = new Output_Test('language_setting', 'core');
$test->handler_response = array('language'=> 'en');
$res = $test->run();
$this->assertEquals(array('<tr class="general_setting"><td><label for="language">Language</label></td><td><select id="language" class="form-select form-select-sm w-auto" name="language"><option value="az">Azerbaijani</option><option value="pt-BR">Brazilian Portuguese</option><option value="zh-Hans">Chinese Simplified</option><option value="nl">Dutch</option><option selected="selected" value="en">English</option><option value="et">Estonian</option><option value="fa">Farsi</option><option value="fr">French</option><option value="de">German</option><option value="hu">Hungarian</option><option value="id">Indonesian</option><option value="it">Italian</option><option value="ja">Japanese</option><option value="ro">Romanian</option><option value="ru">Russian</option><option value="es">Spanish</option></select></td></tr>'), $res->output_response);
$this->assertEquals(array('<tr class="general_setting"><td><label for="language">Language</label></td><td><select id="language" class="form-select form-select-sm w-auto" name="language"><option value="az">Azerbaijani</option><option value="pt-BR">Brazilian Portuguese</option><option value="zh-Hans">Chinese Simplified</option><option value="nl">Dutch</option><option selected="selected" value="en">English</option><option value="et">Estonian</option><option value="fa">Farsi</option><option value="fr">French</option><option value="de">German</option><option value="hu">Hungarian</option><option value="id">Indonesian</option><option value="it">Italian</option><option value="ja">Japanese</option><option value="ro">Romanian</option><option value="ru">Russian</option><option value="es">Spanish</option><option value="zh-TW">Traditional Chinese</option></select></td></tr>'), $res->output_response);
}
/**
* @preserveGlobalState disabled
Expand Down

0 comments on commit eae614c

Please sign in to comment.