コード例 #1
0
ファイル: ChannelContext.php プロジェクト: sylius/sylius
 /**
  * @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
ファイル: ChannelContext.php プロジェクト: origammi/Sylius
 /**
  * @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']);
 }