예제 #1
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());
 }
예제 #2
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']);
 }