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