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