Sylius\Behat\Context\Setup\ZoneContext::thereIsAZoneTheRestOfTheWorldContainingAllOtherCountries PHP Method

thereIsAZoneTheRestOfTheWorldContainingAllOtherCountries() public method

    public function thereIsAZoneTheRestOfTheWorldContainingAllOtherCountries()
    {
        $restOfWorldCountries = Intl::getRegionBundle()->getCountryNames('en');
        unset($restOfWorldCountries['US']);
        $zone = $this->zoneFactory->createWithMembers(array_keys($restOfWorldCountries));
        $zone->setType(ZoneInterface::TYPE_COUNTRY);
        $zone->setCode('RoW');
        $zone->setName('The Rest of the World');
        $this->zoneRepository->add($zone);
    }