/** * @group Core * @dataProvider getLocalizedLongStrings */ public function testGetLocalizedLongString($language, $shouldBe) { StaticContainer::get('Piwik\\Translation\\Translator')->setCurrentLanguage($language); $month = new Day(Date::factory('2024-10-09')); $this->assertEquals($shouldBe, $month->getLocalizedLongString()); }
/** * @group Core */ public function testGetLocalizedLongString() { Translate::loadEnglishTranslation(); $month = new Day(Date::factory('2024-10-09')); $shouldBe = 'Wednesday 9 October 2024'; $this->assertEquals($shouldBe, $month->getLocalizedLongString()); }