/** * @Given the store has a product option :productOptionName with a code :productOptionCode */ public function theStoreHasAProductOptionWithACode($productOptionName, $productOptionCode) { $productOption = $this->productOptionFactory->createNew(); $productOption->setCode($productOptionCode); $productOption->setName($productOptionName); $this->sharedStorage->set('product_option', $productOption); $this->productOptionRepository->add($productOption); }