class CheckoutCompleteContext implements Context

Methods

__construct( SharedStorageInterface $sharedStorage, CompletePageInterface $completePage, NotificationCheckerInterface $notificationChecker)

No description

iGoToThePaymentStep()

No description

iProvideAdditionalNotesLike($notes)

No description

iConfirmMyOrder()

No description

iShouldHaveProductsInTheCart($quantity, $productName)

No description

myOrderShippingShouldBe($price)

No description

theShouldHaveUnitPriceDiscountedFor( ProductInterface $product, $amount)

No description

myOrderTotalShouldBe($total)

No description

myOrderPromotionTotalShouldBe($promotionTotal)

No description

shouldBeAppliedToMyOrder($promotionName)

No description

shouldBeAppliedToMyOrderShipping($promotionName)

No description

myTaxTotalShouldBe($taxTotal)

No description

myOrdersShippingMethodShouldBe( ShippingMethodInterface $shippingMethod)

No description

myOrdersPaymentMethodShouldBe( PaymentMethodInterface $paymentMethod)

No description

theProductShouldHaveUnitPrice( ProductInterface $product, $price)

No description

iShouldBeNotifiedThatThisProductDoesNotHaveSufficientStock( ProductInterface $product)

No description

iShouldNotBeNotifiedThatThisProductDoesNotHaveSufficientStock( ProductInterface $product)

No description

myOrderLocaleShouldBe($locale)

No description

iShouldSeeInTheShippingAddress($provinceName)

No description

iShouldSeeInTheBillingAddress($provinceName)

No description

thisPromotionShouldGiveDiscount( PromotionInterface $promotion, $discount)

No description

iShouldNotBeAbleToConfirmOrderBecauseDoesNotBelongsToShippingCategory( ShippingMethodInterface $shippingMethod)

No description

iShouldBeInformedThatMyPromotionIsNoLongerApplied( PromotionInterface $promotion)

No description

iShouldBeInformedThatThisPaymentMethodHasBeenDisabled( PaymentMethodInterface $paymentMethod)

No description

iShouldBeInformedThatThisProductHasBeenDisabled( ProductInterface $product)

No description

Details

at line 50
__construct( SharedStorageInterface $sharedStorage, CompletePageInterface $completePage, NotificationCheckerInterface $notificationChecker)

Parameters

SharedStorageInterface $sharedStorage
CompletePageInterface $completePage
NotificationCheckerInterface $notificationChecker

at line 64
iTryToOpenCheckoutCompletePage()

at line 72
iGoToThePaymentStep()

at line 80
iProvideAdditionalNotesLike($notes)

Parameters

$notes

at line 89
iReturnToTheCheckoutSummaryStep()

at line 98
iConfirmMyOrder()

at line 107
iShouldBeOnTheCheckoutCompleteStep()

at line 115
iShouldSeeThisShippingAddressAsShippingAddress($fullName)

Parameters

$fullName

at line 125
iShouldSeeThisBillingAddressAsBillingAddress($fullName)

Parameters

$fullName

at line 135
iShouldSeeThisShippingAddressAsShippingAndBillingAddress($fullName)

Parameters

$fullName

at line 144
iShouldHaveProductsInTheCart($quantity, $productName)

Parameters

$quantity
$productName

at line 152
myOrderShippingShouldBe($price)

Parameters

$price

at line 160
theShouldHaveUnitPriceDiscountedFor( ProductInterface $product, $amount)

Parameters

ProductInterface $product
$amount

at line 168
myOrderTotalShouldBe($total)

Parameters

$total

at line 176
myOrderPromotionTotalShouldBe($promotionTotal)

Parameters

$promotionTotal

at line 184
shouldBeAppliedToMyOrder($promotionName)

Parameters

$promotionName

at line 192
shouldBeAppliedToMyOrderShipping($promotionName)

Parameters

$promotionName

at line 200
myTaxTotalShouldBe($taxTotal)

Parameters

$taxTotal

at line 208
myOrdersShippingMethodShouldBe( ShippingMethodInterface $shippingMethod)

Parameters

ShippingMethodInterface $shippingMethod

at line 216
myOrdersPaymentMethodShouldBe( PaymentMethodInterface $paymentMethod)

Parameters

PaymentMethodInterface $paymentMethod

at line 224
theProductShouldHaveUnitPrice( ProductInterface $product, $price)

Parameters

ProductInterface $product
$price

at line 232
iShouldBeNotifiedThatThisProductDoesNotHaveSufficientStock( ProductInterface $product)

Parameters

ProductInterface $product

at line 240
iShouldNotBeNotifiedThatThisProductDoesNotHaveSufficientStock( ProductInterface $product)

Parameters

ProductInterface $product

at line 248
myOrderLocaleShouldBe($locale)

Parameters

$locale

at line 256
iShouldSeeInTheShippingAddress($provinceName)

Parameters

$provinceName

at line 264
iShouldSeeInTheBillingAddress($provinceName)

Parameters

$provinceName

at line 272
iShouldNotSeeAnyInformationAboutPaymentMethod()

at line 280
thisPromotionShouldGiveDiscount( PromotionInterface $promotion, $discount)

Parameters

PromotionInterface $promotion
$discount

at line 288
iShouldNotBeAbleToConfirmOrderBecauseDoesNotBelongsToShippingCategory( ShippingMethodInterface $shippingMethod)

Parameters

ShippingMethodInterface $shippingMethod

at line 304
iShouldBeInformedThatMyPromotionIsNoLongerApplied( PromotionInterface $promotion)

Parameters

PromotionInterface $promotion

at line 315
iShouldBeInformedThatThisPaymentMethodHasBeenDisabled( PaymentMethodInterface $paymentMethod)

Parameters

PaymentMethodInterface $paymentMethod

at line 329
iShouldBeInformedThatThisProductHasBeenDisabled( ProductInterface $product)

Parameters

ProductInterface $product

at line 343
iShouldBeInformedThatOrderTotalHasBeenChanged()