Skip to content

Commit

Permalink
fixup failing PHPUnit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Jan 23, 2024
1 parent a4e9f2a commit cfe7b83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/GlobalConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function testGetBaseHref()

public function testGetLanguages()
{
$this->assertEquals(array('en' => 'en_GB.utf8', 'fi' => 'fi_FI.utf8', 'fr' => 'fr_FR.utf8'), $this->config->getLanguages());
$this->assertEquals(array('en' => 'en_GB.utf8', 'fi' => 'fi_FI.utf8', 'fr' => 'fr_FR.utf8', 'sv' => 'sv_SE.utf8'), $this->config->getLanguages());
}

public function testGetSearchResultsSize()
Expand Down
2 changes: 1 addition & 1 deletion tests/WebControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function testGuessLanguageAcceptLanguageSimple() {

public function testGuessLanguageAcceptLanguageBestMatch() {
$request = new Request($this->model);
$request->setServerConstant('HTTP_ACCEPT_LANGUAGE', 'sv, de;q=0.9, fi;q=0.8, fr;q=0.5');
$request->setServerConstant('HTTP_ACCEPT_LANGUAGE', 'da, de;q=0.9, fi;q=0.8, fr;q=0.5');
$guessedLanguage = $this->webController->guessLanguage($request);
// configured/available languages are en, fi, fr
// the best matching language for the given Accept-Language is fi
Expand Down

0 comments on commit cfe7b83

Please sign in to comment.