From cfe7b83be60e63f01541952d4f6e13bd1555bf50 Mon Sep 17 00:00:00 2001 From: Osma Suominen Date: Tue, 23 Jan 2024 16:21:10 +0200 Subject: [PATCH] fixup failing PHPUnit tests --- tests/GlobalConfigTest.php | 2 +- tests/WebControllerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/GlobalConfigTest.php b/tests/GlobalConfigTest.php index 364cbdd00..55e30d7e5 100644 --- a/tests/GlobalConfigTest.php +++ b/tests/GlobalConfigTest.php @@ -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() diff --git a/tests/WebControllerTest.php b/tests/WebControllerTest.php index 5b90b8c80..0d3319071 100644 --- a/tests/WebControllerTest.php +++ b/tests/WebControllerTest.php @@ -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