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