Skip to content

Commit

Permalink
ltb-project#19: Implemented suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
abpai94 committed Jul 22, 2024
1 parent d0c1456 commit 03f5d06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Ltb/LanguageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function test_accept_all_language() {
# User-Agent Language
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = "en";

$availableLanguages = array("ar", "cn", "de", "el", "es", "fr", "it", "nb-NO", "pl", "pt-PT", "ru", "sl", "tr", "zh-CN", "ca", "cs", "ee", "en", "eu", "hu", "ja", "nl", "pt-BR", "rs", "sk", "sv", "uk", "zh-TW");
$availableLanguages = array("ar","cn","de","el","es","fr","it","nb-NO","pl","pt-PT","ru","sl","tr","zh-CN","ca","cs","ee","en","eu","hu","ja","nl","pt-BR","rs","sk","sv","uk","zh-TW");
$defaultLanguage = "en";

# Execute function
Expand All @@ -22,7 +22,7 @@ function test_restrict_language() {
# User-Agent Language
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = "en";

$availableLanguages = array("ar", "cn", "de", "el", "es", "fr", "it", "nb-NO", "pl", "pt-PT", "ru", "sl", "tr", "zh-CN", "ca", "cs", "ee", "en", "eu", "hu", "ja", "nl", "pt-BR", "rs", "sk", "sv", "uk", "zh-TW");
$availableLanguages = array("ar","cn","de","el","es","fr","it","nb-NO","pl","pt-PT","ru","sl","tr","zh-CN","ca","cs","ee","en","eu","hu","ja","nl","pt-BR","rs","sk","sv","uk","zh-TW");
$allowedLanguages = array("fr");
$defaultLanguage = "fr";

Expand All @@ -37,7 +37,7 @@ function test_default_language() {
# User-Agent Language
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = "ar, en";

$availableLanguages = array("ar", "cn", "de", "el", "es", "it", "nb-NO", "pl", "pt-PT", "ru", "sl", "tr", "zh-CN", "ca", "cs", "ee", "en", "eu", "hu", "ja", "nl", "pt-BR", "rs", "sk", "sv", "uk", "zh-TW");
$availableLanguages = array("ar","cn","de","el","es","fr","it","nb-NO","pl","pt-PT","ru","sl","tr","zh-CN","ca","cs","ee","en","eu","hu","ja","nl","pt-BR","rs","sk","sv","uk","zh-TW");
$allowedLanguages = array("fr");
$defaultLanguage = "en";

Expand Down

0 comments on commit 03f5d06

Please sign in to comment.