Esempio n. 1
0
 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();
 }
Esempio n. 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());
 }
Esempio n. 3
0
 /**
  * @Given the store operates on a single channel
  */
 public function storeOperatesOnASingleChannel()
 {
     $defaultData = $this->defaultChannelFactory->create();
     $this->sharedStorage->setClipboard($defaultData);
 }
Esempio n. 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']);
 }