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
Afficher le fichier Open project: sylius/sylius

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode Description
getDefinedElements ( )

Private Methods

Méthode 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 méthode

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 méthode

public addNotes ( $notes )

changeAddress() public méthode

public changeAddress ( )

changePaymentMethod() public méthode

public changePaymentMethod ( )

changeShippingMethod() public méthode

confirmOrder() public méthode

public confirmOrder ( )

getBaseCurrencyOrderTotal() public méthode

getDefinedElements() protected méthode

protected getDefinedElements ( )

getRouteName() public méthode

public getRouteName ( )

hasBillingAddress() public méthode

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

hasBillingProvinceName() public méthode

public hasBillingProvinceName ( $provinceName )

hasCurrency() public méthode

public hasCurrency ( $currencyCode )

hasItemWithProductAndQuantity() public méthode

public hasItemWithProductAndQuantity ( $productName, $quantity )

hasLocale() public méthode

public hasLocale ( $localeName )

hasOrderTotal() public méthode

public hasOrderTotal ( $total )

hasPaymentMethod() public méthode

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

hasProductDiscountedUnitPriceBy() public méthode

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

hasProductOutOfStockValidationMessage() public méthode

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

hasProductUnitPrice() public méthode

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

hasPromotion() public méthode

public hasPromotion ( $promotionName )

hasPromotionTotal() public méthode

public hasPromotionTotal ( $promotionTotal )

hasShippingAddress() public méthode

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

hasShippingMethod() public méthode

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

hasShippingProvinceName() public méthode

public hasShippingProvinceName ( $provinceName )

hasShippingTotal() public méthode

public hasShippingTotal ( $price )

hasTaxTotal() public méthode

public hasTaxTotal ( $taxTotal )