function it_sets_default_channel_in_the_shared_storage(SharedStorageInterface $sharedStorage, DefaultChannelFactoryInterface $defaultChannelFactory, ChannelInterface $channel, ZoneInterface $zone)
 {
     $defaultData = ['channel' => $channel, 'zone' => $zone];
     $defaultChannelFactory->create()->willReturn($defaultData);
     $sharedStorage->setClipboard($defaultData)->shouldBeCalled();
     $this->storeOperatesOnASingleChannel();
 }
Beispiel #2
0
 /**
  * @Given /^the store(?:| also) operates on (?:a|another) channel named "([^"]+)"$/
  * @Given /^the store(?:| also) operates on (?:a|another) channel named "([^"]+)" in "([^"]+)" currency$/
  * @Given the store operates on a channel identified by :code code
  */
 public function theStoreOperatesOnAChannelNamed($channelIdentifier, $currencyCode = null)
 {
     $defaultData = $this->defaultChannelFactory->create($channelIdentifier, $channelIdentifier, $currencyCode);
     $this->sharedStorage->setClipboard($defaultData);
     $this->sharedStorage->set('channel', $defaultData['channel']);
     $this->currencyStorage->set($defaultData['channel'], $defaultData['currency']->getCode());
 }
Beispiel #3
0
 /**
  * @Given the store operates on a single channel
  */
 public function storeOperatesOnASingleChannel()
 {
     $defaultData = $this->defaultChannelFactory->create();
     $this->sharedStorage->setClipboard($defaultData);
 }
Beispiel #4
0
 /**
  * @Given /^the store operates on (?:a|another) channel named "([^"]+)"$/
  * @Given the store operates on a channel identified by :code code
  */
 public function theStoreOperatesOnAChannelNamed($channelIdentifier)
 {
     $defaultData = $this->defaultChannelFactory->create($channelIdentifier, $channelIdentifier);
     $this->sharedStorage->setClipboard($defaultData);
     $this->sharedStorage->set('channel', $defaultData['channel']);
 }