PHP Class Sylius\Behat\Page\Shop\Checkout\CompletePage

Author: Mateusz Zalewski ([email protected])
Inheritance: extends Sylius\Behat\Page\SymfonyPage, implements Sylius\Behat\Page\Shop\Checkout\CompletePageInterface
Mostrar archivo Open project: sylius/sylius

Public Methods

Method Description
__construct ( Behat\Mink\Session $session, array $parameters, Symfony\Component\Routing\RouterInterface $router, Sylius\Behat\Service\Accessor\TableAccessorInterface $tableAccessor )
addNotes ( $notes )
changeAddress ( )
changePaymentMethod ( )
changeShippingMethod ( )
confirmOrder ( )
getBaseCurrencyOrderTotal ( )
getRouteName ( )
hasBillingAddress ( Sylius\Component\Core\Model\AddressInterface $address )
hasBillingProvinceName ( $provinceName )
hasCurrency ( $currencyCode )
hasItemWithProductAndQuantity ( $productName, $quantity )
hasLocale ( $localeName )
hasOrderTotal ( $total )
hasPaymentMethod ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod )
hasProductDiscountedUnitPriceBy ( Sylius\Component\Core\Model\ProductInterface $product, $amount )
hasProductOutOfStockValidationMessage ( Sylius\Component\Core\Model\ProductInterface $product )
hasProductUnitPrice ( Sylius\Component\Core\Model\ProductInterface $product, $price )
hasPromotion ( $promotionName )
hasPromotionTotal ( $promotionTotal )
hasShippingAddress ( Sylius\Component\Core\Model\AddressInterface $address )
hasShippingMethod ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
hasShippingProvinceName ( $provinceName )
hasShippingTotal ( $price )
hasTaxTotal ( $taxTotal )

Protected Methods

Method Description
getDefinedElements ( )

Private Methods

Method Description
getBaseTotalFromString ( string $total ) : integer
getCountryName ( string $countryCode ) : string
getPriceFromString ( string $price ) : integer
getProductRowElement ( Sylius\Component\Core\Model\ProductInterface $product ) : Behat\Mink\Element\NodeElement
getTotalFromString ( string $total ) : integer
hasAddressPart ( string $address, string $addressPart, $optional = false ) : boolean
isAddressValid ( string $displayedAddress, Sylius\Component\Core\Model\AddressInterface $address ) : boolean

Method Details

__construct() public method

public __construct ( Behat\Mink\Session $session, array $parameters, Symfony\Component\Routing\RouterInterface $router, Sylius\Behat\Service\Accessor\TableAccessorInterface $tableAccessor )
$session Behat\Mink\Session
$parameters array
$router Symfony\Component\Routing\RouterInterface
$tableAccessor Sylius\Behat\Service\Accessor\TableAccessorInterface

addNotes() public method

public addNotes ( $notes )

changeAddress() public method

public changeAddress ( )

changePaymentMethod() public method

public changePaymentMethod ( )

changeShippingMethod() public method

confirmOrder() public method

public confirmOrder ( )

getBaseCurrencyOrderTotal() public method

getDefinedElements() protected method

protected getDefinedElements ( )

getRouteName() public method

public getRouteName ( )

hasBillingAddress() public method

public hasBillingAddress ( Sylius\Component\Core\Model\AddressInterface $address )
$address Sylius\Component\Core\Model\AddressInterface

hasBillingProvinceName() public method

public hasBillingProvinceName ( $provinceName )

hasCurrency() public method

public hasCurrency ( $currencyCode )

hasItemWithProductAndQuantity() public method

public hasItemWithProductAndQuantity ( $productName, $quantity )

hasLocale() public method

public hasLocale ( $localeName )

hasOrderTotal() public method

public hasOrderTotal ( $total )

hasPaymentMethod() public method

public hasPaymentMethod ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod )
$paymentMethod Sylius\Component\Payment\Model\PaymentMethodInterface

hasProductDiscountedUnitPriceBy() public method

public hasProductDiscountedUnitPriceBy ( Sylius\Component\Core\Model\ProductInterface $product, $amount )
$product Sylius\Component\Core\Model\ProductInterface

hasProductOutOfStockValidationMessage() public method

public hasProductOutOfStockValidationMessage ( Sylius\Component\Core\Model\ProductInterface $product )
$product Sylius\Component\Core\Model\ProductInterface

hasProductUnitPrice() public method

public hasProductUnitPrice ( Sylius\Component\Core\Model\ProductInterface $product, $price )
$product Sylius\Component\Core\Model\ProductInterface

hasPromotion() public method

public hasPromotion ( $promotionName )

hasPromotionTotal() public method

public hasPromotionTotal ( $promotionTotal )

hasShippingAddress() public method

public hasShippingAddress ( Sylius\Component\Core\Model\AddressInterface $address )
$address Sylius\Component\Core\Model\AddressInterface

hasShippingMethod() public method

public hasShippingMethod ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface

hasShippingProvinceName() public method

public hasShippingProvinceName ( $provinceName )

hasShippingTotal() public method

public hasShippingTotal ( $price )

hasTaxTotal() public method

public hasTaxTotal ( $taxTotal )