예제 #1
0
 public function testGetLocalizedShortString()
 {
     $month = new Month(Date::factory('2024-10-09'));
     $shouldBe = 'Oct 2024';
     $this->assertEquals($shouldBe, $month->getLocalizedShortString());
 }
예제 #2
0
 /**
  * @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());
 }