Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Sylius
Behat
Context
Ui
Shop
CartContext
iUseCouponWithCode
Sylius\Behat\Context\Ui\Shop\CartContext::iUseCouponWithCode PHP Method
CartContext Class Documentation
Show file
Open project: sylius/sylius
iUseCouponWithCode()
public
method
public
iUseCouponWithCode
(
$couponCode
)
public function iUseCouponWithCode($couponCode) { $this->summaryPage->applyCoupon($couponCode); }
CartContext
__construct
getPriceFromString
iAddMultipleProductsToTheCart
iAddProductToTheCart
iAddProductToTheCartSelectingVariant
iAddProductsToTheCart
iAddQuantityOfProductsToTheCart
iAddThisProductWithToTheCart
iChangeQuantityTo
iClearMyCart
iOpenCartSummaryPage
iRemoveProductFromTheCart
iShouldBeNotifiedThatCouponIsInvalid
iShouldBeNotifiedThatItHasBeenSuccessfullyAdded
iShouldBeNotifiedThatMyCartIsEmpty
iShouldBeNotifiedThatThisProductDoesNotHaveSufficientStock
iShouldNotBeNotifiedThatThisProductCannotBeUpdated
iShouldSeeProductWithUnitPriceInMyCart
iShouldSeeWithQuantityInMyCart
iUpdateMyCart
iUseCouponWithCode
itsPriceShouldBeDecreasedBy
myBaseCartTotalShouldBe
myCartSTotalShouldBe
myCartShippingFeeShouldBe
myCartTaxesShouldBe
myCartTotalShouldBe
myDiscountShouldBe
productPriceShouldNotBeDecreased
shouldBeOnMyCartSummaryPage
thereShouldBeNoDiscount
thereShouldBeNoShippingFee
thereShouldBeOneItemInMyCart
thisItemPriceShouldBe
thisItemShouldHaveCode
thisItemShouldHaveOptionValue
thisItemShouldHaveVariant
thisProductShouldHaveName