Exemplo n.º 1
0
 public function testGetMonths()
 {
     $this->localeLists->expects($this->once())->method('getTranslationList')->with('month')->will($this->returnValue($this->monthList));
     $this->assertEquals($this->expectedMonthList, $this->config->getMonths());
 }
Exemplo n.º 2
0
 public function testGetNameWithLocale()
 {
     $this->localeListsMock->expects($this->once())->method('getCountryTranslation')->with(1, 'de_DE')->willReturn('Vereinigte Staaten');
     $this->country->setId(1);
     $this->assertEquals('Vereinigte Staaten', $this->country->getName('de_DE'));
 }