예제 #1
0
 /**
  * @return void
  */
 public function testGetIdByIso2CodeReturnsRightValue()
 {
     $country = new SpyCountry();
     $country->setIso2Code(self::ISO2_CODE);
     $country->save();
     $this->assertEquals($country->getIdCountry(), $this->countryFacade->getIdCountryByIso2Code(self::ISO2_CODE));
 }
예제 #2
0
 /**
  * @return void
  */
 private function runInstaller()
 {
     $messenger = $this->getMessenger();
     $localeFacade = new LocaleFacade();
     $localeFacade->install($messenger);
     $countryFacade = new CountryFacade();
     $countryFacade->install($messenger);
 }
예제 #3
0
 /**
  * @api
  *
  * @return \Generated\Shared\Transfer\CountryCollectionTransfer
  */
 public function getAvailableCountries()
 {
     return $this->countryFacade->getAvailableCountries();
 }