public function testGetMonths() { $this->localeLists->expects($this->once())->method('getTranslationList')->with('month')->will($this->returnValue($this->monthList)); $this->assertEquals($this->expectedMonthList, $this->config->getMonths()); }
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')); }