mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[Behat] Add creation of zones in zone setup context
This commit is contained in:
parent
2c60a25654
commit
f7d5a00315
1 changed files with 12 additions and 0 deletions
|
|
@ -114,4 +114,16 @@ final class ZoneContext implements Context
|
|||
$this->zoneRepository->remove($zone);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given the store has a zone :zoneName with code :code
|
||||
*/
|
||||
public function theStoreHasAZoneWithCode($zoneName, $code)
|
||||
{
|
||||
$zone = $this->zoneFactory->createTyped(ZoneInterface::TYPE_ZONE);
|
||||
$zone->setCode($code);
|
||||
$zone->setName($zoneName);
|
||||
|
||||
$this->zoneRepository->add($zone);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue