Esempio n. 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));
 }
Esempio n. 2
0
 /**
  * @return void
  */
 private function runInstaller()
 {
     $messenger = $this->getMessenger();
     $localeFacade = new LocaleFacade();
     $localeFacade->install($messenger);
     $countryFacade = new CountryFacade();
     $countryFacade->install($messenger);
 }
Esempio n. 3
0
 /**
  * @api
  *
  * @return \Generated\Shared\Transfer\CountryCollectionTransfer
  */
 public function getAvailableCountries()
 {
     return $this->countryFacade->getAvailableCountries();
 }