public specifyPrice ( integer $price, string $channel ) | ||
$price | integer | |
$channel | string |
/** * @When /^I set its price to ("(?:€|£|\$)[^"]+")$/ */ public function iSetItsPriceTo($price) { $this->createPage->specifyPrice($price); }
/** * @When /^I set its(?:| default) price to "(?:€|£|\$)([^"]+)" for "([^"]+)" channel$/ * @When I do not set its price */ public function iSetItsPriceTo($price = null, $channel = null) { $this->createPage->specifyPrice($price, null === $channel ? $this->sharedStorage->get('channel') : $channel); }