Method | Description | |
---|---|---|
__construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Behat\Page\Shop\Cart\SummaryPageInterface $summaryPage, Sylius\Behat\Page\Shop\Product\ShowPageInterface $productShowPage, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker ) | ||
iAddMultipleProductsToTheCart ( array $products ) | ||
iAddProductToTheCart ( Sylius\Component\Product\Model\ProductInterface $product ) | ||
iAddProductToTheCartSelectingVariant ( $variantName, Sylius\Component\Product\Model\ProductInterface $product ) | ||
iAddProductsToTheCart ( $quantity, Sylius\Component\Product\Model\ProductInterface $product ) | ||
iAddQuantityOfProductsToTheCart ( $quantity, Sylius\Component\Product\Model\ProductInterface $product ) | ||
iAddThisProductWithToTheCart ( Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Model\ProductOptionInterface $productOption, $productOptionValue ) | ||
iChangeQuantityTo ( $productName, $quantity ) | ||
iClearMyCart ( ) | ||
iOpenCartSummaryPage ( ) | ||
iRemoveProductFromTheCart ( $productName ) | ||
iShouldBeNotifiedThatCouponIsInvalid ( ) | ||
iShouldBeNotifiedThatItHasBeenSuccessfullyAdded ( ) | ||
iShouldBeNotifiedThatMyCartIsEmpty ( ) | ||
iShouldBeNotifiedThatThisProductDoesNotHaveSufficientStock ( Sylius\Component\Product\Model\ProductInterface $product ) | ||
iShouldNotBeNotifiedThatThisProductCannotBeUpdated ( Sylius\Component\Product\Model\ProductInterface $product ) | ||
iShouldSeeProductWithUnitPriceInMyCart ( $productName, $unitPrice ) | ||
iShouldSeeWithQuantityInMyCart ( $productName, $quantity ) | ||
iUpdateMyCart ( ) | ||
iUseCouponWithCode ( $couponCode ) | ||
itsPriceShouldBeDecreasedBy ( Sylius\Component\Product\Model\ProductInterface $product, $amount ) | ||
myBaseCartTotalShouldBe ( $total ) | ||
myCartSTotalShouldBe ( $total ) | ||
myCartShippingFeeShouldBe ( $shippingTotal = '$0.00' ) | ||
myCartTaxesShouldBe ( $taxTotal ) | ||
myCartTotalShouldBe ( $total ) | ||
myDiscountShouldBe ( $promotionsTotal ) | ||
productPriceShouldNotBeDecreased ( Sylius\Component\Product\Model\ProductInterface $product ) | ||
shouldBeOnMyCartSummaryPage ( ) | ||
thereShouldBeNoDiscount ( ) | ||
thereShouldBeNoShippingFee ( ) | ||
thereShouldBeOneItemInMyCart ( ) | ||
thisItemPriceShouldBe ( $productName, $productPrice ) | ||
thisItemShouldHaveCode ( $variantCode ) | ||
thisItemShouldHaveOptionValue ( Sylius\Component\Product\Model\ProductInterface $product, $optionName, $optionValue ) | ||
thisItemShouldHaveVariant ( $variantName ) | ||
thisProductShouldHaveName ( $itemName ) |
Method | Description | |
---|---|---|
getPriceFromString ( string $price ) : integer |
public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Behat\Page\Shop\Cart\SummaryPageInterface $summaryPage, Sylius\Behat\Page\Shop\Product\ShowPageInterface $productShowPage, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker ) | ||
$sharedStorage | Sylius\Behat\Service\SharedStorageInterface | |
$summaryPage | Sylius\Behat\Page\Shop\Cart\SummaryPageInterface | |
$productShowPage | Sylius\Behat\Page\Shop\Product\ShowPageInterface | |
$notificationChecker | Sylius\Behat\Service\NotificationCheckerInterface |
public iAddMultipleProductsToTheCart ( array $products ) | ||
$products | array |
public iAddProductToTheCart ( Sylius\Component\Product\Model\ProductInterface $product ) | ||
$product | Sylius\Component\Product\Model\ProductInterface |
public iAddProductToTheCartSelectingVariant ( $variantName, Sylius\Component\Product\Model\ProductInterface $product ) | ||
$product | Sylius\Component\Product\Model\ProductInterface |
public iAddProductsToTheCart ( $quantity, Sylius\Component\Product\Model\ProductInterface $product ) | ||
$product | Sylius\Component\Product\Model\ProductInterface |
public iAddQuantityOfProductsToTheCart ( $quantity, Sylius\Component\Product\Model\ProductInterface $product ) | ||
$product | Sylius\Component\Product\Model\ProductInterface |
public iAddThisProductWithToTheCart ( Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Model\ProductOptionInterface $productOption, $productOptionValue ) | ||
$product | Sylius\Component\Product\Model\ProductInterface | |
$productOption | Sylius\Component\Product\Model\ProductOptionInterface |
public iShouldBeNotifiedThatCouponIsInvalid ( ) |
public iShouldBeNotifiedThatThisProductDoesNotHaveSufficientStock ( Sylius\Component\Product\Model\ProductInterface $product ) | ||
$product | Sylius\Component\Product\Model\ProductInterface |
public iShouldNotBeNotifiedThatThisProductCannotBeUpdated ( Sylius\Component\Product\Model\ProductInterface $product ) | ||
$product | Sylius\Component\Product\Model\ProductInterface |
public iShouldSeeProductWithUnitPriceInMyCart ( $productName, $unitPrice ) |
public iShouldSeeWithQuantityInMyCart ( $productName, $quantity ) |
public itsPriceShouldBeDecreasedBy ( Sylius\Component\Product\Model\ProductInterface $product, $amount ) | ||
$product | Sylius\Component\Product\Model\ProductInterface |
public myCartShippingFeeShouldBe ( $shippingTotal = '$0.00' ) |
public productPriceShouldNotBeDecreased ( Sylius\Component\Product\Model\ProductInterface $product ) | ||
$product | Sylius\Component\Product\Model\ProductInterface |
public thisItemShouldHaveOptionValue ( Sylius\Component\Product\Model\ProductInterface $product, $optionName, $optionValue ) | ||
$product | Sylius\Component\Product\Model\ProductInterface |