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