Author: Łukasz Chruściel (lukasz.chrusciel@lakion.com)
Inheritance: extends Sylius\Behat\Page\Admin\Crud\UpdatePageInterface
 /**
  * @Then /^inventory of (this variant) should be tracked$/
  */
 public function thisProductVariantShouldBeTracked(ProductVariantInterface $productVariant)
 {
     $this->iWantToModifyAProduct($productVariant);
     Assert::true($this->updatePage->isTracked(), 'This variant should be tracked, but it is not.');
 }
 /**
  * @When I remove its name
  */
 public function iRemoveItsNameFromTranslation()
 {
     $this->updatePage->nameIt('');
 }
 /**
  * @Then /^(variant with code "[^"]+") for ("[^"]+" currency) and ("[^"]+" channel) should be priced at "(?:€|£|\$)([^"]+)"$/
  */
 public function theProductForCurrencyAndChannelShouldBePricedAt(ProductVariantInterface $productVariant, CurrencyInterface $currency, ChannelInterface $channel, $price)
 {
     $this->updatePage->open(['id' => $productVariant->getId(), 'productId' => $productVariant->getProduct()->getId()]);
     Assert::same($this->updatePage->getPricingConfigurationForChannelAndCurrencyCalculator($channel, $currency), $price);
 }
 /**
  * @param string $element
  * @param string $value
  */
 private function assertElementValue($element, $value)
 {
     Assert::true($this->updatePage->hasResourceValues([$element => $value]), sprintf('Product should have %s with %s value.', $element, $value));
 }