/** * @Given the store does not have any zones defined */ public function theStoreDoesNotHaveAnyZonesDefined() { $zones = $this->zoneRepository->findAll(); foreach ($zones as $zone) { $this->zoneRepository->remove($zone); } }
/** * @Given /^the store ships everywhere for free$/ */ public function theStoreShipsEverywhereForFree() { foreach ($this->zoneRepository->findAll() as $zone) { $this->createShippingMethod('Free', null, $zone); } }