function it_sets_default_channel_in_the_shared_storage(SharedStorageInterface $sharedStorage, DefaultStoreDataInterface $defaultFranceChannelFactory, ChannelInterface $channel, ZoneInterface $zone) { $defaultData = ['channel' => $channel, 'zone' => $zone]; $defaultFranceChannelFactory->create()->willReturn($defaultData); $sharedStorage->setClipboard($defaultData)->shouldBeCalled(); $this->thatStoreIsOperatingOnASingleChannel(); }
/** * @Given the store is operating on a single channel */ public function thatStoreIsOperatingOnASingleChannel() { $defaultData = $this->defaultFranceChannelFactory->create(); $this->sharedStorage->setClipboard($defaultData); }