function it_deletes_a_tax_cateogory(IndexPageInterface $indexPage, TaxCategoryInterface $taxCategory) { $taxCategory->getCode()->willReturn('alcohol'); $indexPage->deleteResourceOnPage(['code' => 'alcohol'])->shouldBeCalled(); $indexPage->open()->shouldBeCalled(); $this->iDeletedTaxCategory($taxCategory); }
/** * @When I delete tax category :taxCategory */ public function iDeletedTaxCategory(TaxCategoryInterface $taxCategory) { $this->indexPage->open(); $this->indexPage->deleteResourceOnPage(['code' => $taxCategory->getCode()]); }
/** * @When /^I delete (zone named "([^"]*)")$/ */ public function iDeleteZoneNamed(ZoneInterface $zone) { $this->indexPage->open(); $this->indexPage->deleteResourceOnPage(['name' => $zone->getName(), 'code' => $zone->getCode()]); }
/** * @When /^I delete ("[^"]+" coupon) related to (this promotion)$/ * @When /^I try to delete ("[^"]+" coupon) related to (this promotion)$/ */ public function iDeleteCouponRelatedToThisPromotion(PromotionCouponInterface $coupon, PromotionInterface $promotion) { $this->indexPage->open(['promotionId' => $promotion->getId()]); $this->indexPage->deleteResourceOnPage(['code' => $coupon->getCode()]); }
/** * @When I delete shipping method :shippingMethod * @When I try to delete shipping method :shippingMethod */ public function iDeleteShippingMethod(ShippingMethodInterface $shippingMethod) { $this->indexPage->open(); $this->indexPage->deleteResourceOnPage(['name' => $shippingMethod->getName()]); }
/** * @When I delete the :product product * @When I try to delete the :product product */ public function iDeleteProduct(ProductInterface $product) { $this->sharedStorage->set('product', $product); $this->iWantToBrowseProducts(); $this->indexPage->deleteResourceOnPage(['name' => $product->getName()]); }
/** * @When I delete the exchange rate between :sourceCurrencyName and :targetCurrencyName */ public function iDeleteTheExchangeRateBetweenAnd($sourceCurrencyName, $targetCurrencyName) { $this->indexPage->open(); $this->indexPage->deleteResourceOnPage(['sourceCurrency' => $sourceCurrencyName, 'targetCurrency' => $targetCurrencyName]); }
/** * @When I delete static content :title */ public function iDeleteStaticContent($title) { $this->indexPage->open(); $this->indexPage->deleteResourceOnPage(['title' => $title]); }
/** * @When I delete the :customerGroup customer group */ public function iDeleteTheCustomerGroup(CustomerGroupInterface $customerGroup) { $this->iWantToBrowseCustomerGroups(); $this->indexPage->deleteResourceOnPage(['name' => $customerGroup->getName()]); }
/** * @When /^I delete (this product attribute)$/ */ public function iDeleteThisProductAttribute(AttributeInterface $productAttribute) { $this->indexPage->open(); $this->indexPage->deleteResourceOnPage(['code' => $productAttribute->getCode(), 'name' => $productAttribute->getName()]); }
/** * @When I delete shipping category :shippingCategoryName */ public function iDeleteShippingCategory($shippingCategoryName) { $this->iWantToBrowseShippingCategories(); $this->indexPage->deleteResourceOnPage(['name' => $shippingCategoryName]); }
/** * @When /^I delete the ("[^"]+" variant of product "[^"]+")$/ * @When /^I try to delete the ("[^"]+" variant of product "[^"]+")$/ */ public function iDeleteTheVariantOfProduct(ProductVariantInterface $productVariant) { $this->iWantToViewAllVariantsOfThisProduct($productVariant->getProduct()); $this->indexPage->deleteResourceOnPage(['code' => $productVariant->getCode()]); }
/** * @When I delete route :name */ public function iDeleteRoute($name) { $this->indexPage->open(); $this->indexPage->deleteResourceOnPage(['name' => $name]); }
/** * @When I delete tax rate :taxRate */ public function iDeletedTaxRate(TaxRateInterface $taxRate) { $this->indexPage->open(); $this->indexPage->deleteResourceOnPage(['name' => $taxRate->getName()]); }
/** * @When I delete the :paymentMethod payment method */ public function iDeletePaymentMethod(PaymentMethodInterface $paymentMethod) { $this->indexPage->open(); $this->indexPage->deleteResourceOnPage(['code' => $paymentMethod->getCode(), 'name' => $paymentMethod->getName()]); }
/** * @When I delete administrator with email :email */ public function iDeleteAdministratorWithEmail($email) { $this->indexPage->deleteResourceOnPage(['email' => $email]); }
/** * @When I delete the :productAssociationType product association type */ public function iDeleteTheProductAssociationType(ProductAssociationTypeInterface $productAssociationType) { $this->iWantToBrowseProductAssociationTypes(); $this->indexPage->deleteResourceOnPage(['code' => $productAssociationType->getCode(), 'name' => $productAssociationType->getName()]); }