PHP Class Sylius\Behat\Context\Ui\Shop\AccountContext

Author: Grzegorz Sadowski ([email protected])
Inheritance: implements Behat\Behat\Context\Context
Show file Open project: sylius/sylius

Public Methods

Method Description
__construct ( Sylius\Behat\Page\Shop\Account\DashboardPageInterface $dashboardPage, Sylius\Behat\Page\Shop\Account\ProfileUpdatePageInterface $profileUpdatePage, Sylius\Behat\Page\Shop\Account\ChangePasswordPageInterface $changePasswordPage, Sylius\Behat\Page\Shop\Account\Order\IndexPageInterface $orderIndexPage, Sylius\Behat\Page\Shop\Account\Order\ShowPageInterface $orderShowPage, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker )
iBrowseMyOrders ( )
iChangePasswordTo ( $oldPassword, $newPassword )
iSaveMyChanges ( )
iShouldBeAbleToChangePaymentMethodForThisOrder ( Sylius\Component\Core\Model\OrderInterface $order )
iShouldBeNotifiedThatElementIsInvalid ( $element )
iShouldBeNotifiedThatElementIsRequired ( $element )
iShouldBeNotifiedThatItHasBeenSuccessfullyEdited ( )
iShouldBeNotifiedThatMyPasswordHasBeenSuccessfullyChanged ( )
iShouldBeNotifiedThatProvidedPasswordIsDifferentThanTheCurrentOne ( )
iShouldBeNotifiedThatTheEmailIsAlreadyUsed ( )
iShouldBeNotifiedThatTheEnteredPasswordsDoNotMatch ( )
iShouldBeNotifiedThatThePasswordShouldBeAtLeastCharactersLong ( )
iShouldBeSubscribedToTheNewsletter ( )
iShouldSeeASingleOrderInTheList ( )
iShouldSeeAsItemPrice ( $itemPrice )
iShouldSeeAsOrderSSubtotal ( $subtotal )
iShouldSeeAsOrderSTotal ( $total )
iShouldSeeAsProvinceInTheBillingAddress ( $provinceName )
iShouldSeeAsProvinceInTheShippingAddress ( $provinceName )
iShouldSeeAsShippingAddress ( $customerName, $street, $postcode, $city, $countryName )
iShouldSeeIHaveToPayForThisOrder ( $paymentAmount )
iShouldSeeItemsInTheList ( $numberOfItems )
iSpecifyCustomerTheEmail ( $email = null )
iSpecifyTheConfirmationPasswordAs ( $password )
iSpecifyTheCurrentPasswordAs ( $password )
iSpecifyTheFirstName ( $firstName = null )
iSpecifyTheLastName ( $lastName = null )
iSpecifyTheNewPasswordAs ( $password )
iSubscribeToTheNewsletter ( )
iViewTheSummaryOfTheOrder ( Sylius\Component\Core\Model\OrderInterface $order )
iViewingTheSummaryOfMyLastOrder ( )
iWantToChangeMyPassword ( )
iWantToModifyMyProfile ( )
itShouldBeShippedTo ( $customerName, $street, $postcode, $city, $countryName )
itShouldHasNumber ( $orderNumber )
myEmailShouldBe ( $email )
myNameShouldBe ( $name )
theProductShouldBeInTheItemsList ( $productName )
thisOrderShouldHaveNumber ( Sylius\Component\Core\Model\OrderInterface $order )

Private Methods

Method Description
assertFieldValidationMessage ( Sylius\Behat\Page\PageInterface $page, string $element, string $expectedMessage )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Page\Shop\Account\DashboardPageInterface $dashboardPage, Sylius\Behat\Page\Shop\Account\ProfileUpdatePageInterface $profileUpdatePage, Sylius\Behat\Page\Shop\Account\ChangePasswordPageInterface $changePasswordPage, Sylius\Behat\Page\Shop\Account\Order\IndexPageInterface $orderIndexPage, Sylius\Behat\Page\Shop\Account\Order\ShowPageInterface $orderShowPage, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker )
$dashboardPage Sylius\Behat\Page\Shop\Account\DashboardPageInterface
$profileUpdatePage Sylius\Behat\Page\Shop\Account\ProfileUpdatePageInterface
$changePasswordPage Sylius\Behat\Page\Shop\Account\ChangePasswordPageInterface
$orderIndexPage Sylius\Behat\Page\Shop\Account\Order\IndexPageInterface
$orderShowPage Sylius\Behat\Page\Shop\Account\Order\ShowPageInterface
$notificationChecker Sylius\Behat\Service\NotificationCheckerInterface

iBrowseMyOrders() public method

public iBrowseMyOrders ( )

iChangePasswordTo() public method

public iChangePasswordTo ( $oldPassword, $newPassword )

iSaveMyChanges() public method

public iSaveMyChanges ( )

iShouldBeAbleToChangePaymentMethodForThisOrder() public method

public iShouldBeAbleToChangePaymentMethodForThisOrder ( Sylius\Component\Core\Model\OrderInterface $order )
$order Sylius\Component\Core\Model\OrderInterface

iShouldBeNotifiedThatElementIsInvalid() public method

iShouldBeNotifiedThatElementIsRequired() public method

iShouldBeNotifiedThatItHasBeenSuccessfullyEdited() public method

iShouldBeNotifiedThatMyPasswordHasBeenSuccessfullyChanged() public method

iShouldBeNotifiedThatProvidedPasswordIsDifferentThanTheCurrentOne() public method

iShouldBeNotifiedThatTheEmailIsAlreadyUsed() public method

iShouldBeNotifiedThatTheEnteredPasswordsDoNotMatch() public method

iShouldBeNotifiedThatThePasswordShouldBeAtLeastCharactersLong() public method

iShouldBeSubscribedToTheNewsletter() public method

iShouldSeeASingleOrderInTheList() public method

iShouldSeeAsItemPrice() public method

public iShouldSeeAsItemPrice ( $itemPrice )

iShouldSeeAsOrderSSubtotal() public method

public iShouldSeeAsOrderSSubtotal ( $subtotal )

iShouldSeeAsOrderSTotal() public method

public iShouldSeeAsOrderSTotal ( $total )

iShouldSeeAsProvinceInTheBillingAddress() public method

public iShouldSeeAsProvinceInTheBillingAddress ( $provinceName )

iShouldSeeAsProvinceInTheShippingAddress() public method

public iShouldSeeAsProvinceInTheShippingAddress ( $provinceName )

iShouldSeeAsShippingAddress() public method

public iShouldSeeAsShippingAddress ( $customerName, $street, $postcode, $city, $countryName )

iShouldSeeIHaveToPayForThisOrder() public method

public iShouldSeeIHaveToPayForThisOrder ( $paymentAmount )

iShouldSeeItemsInTheList() public method

public iShouldSeeItemsInTheList ( $numberOfItems )

iSpecifyCustomerTheEmail() public method

public iSpecifyCustomerTheEmail ( $email = null )

iSpecifyTheConfirmationPasswordAs() public method

public iSpecifyTheConfirmationPasswordAs ( $password )

iSpecifyTheCurrentPasswordAs() public method

public iSpecifyTheCurrentPasswordAs ( $password )

iSpecifyTheFirstName() public method

public iSpecifyTheFirstName ( $firstName = null )

iSpecifyTheLastName() public method

public iSpecifyTheLastName ( $lastName = null )

iSpecifyTheNewPasswordAs() public method

public iSpecifyTheNewPasswordAs ( $password )

iSubscribeToTheNewsletter() public method

iViewTheSummaryOfTheOrder() public method

public iViewTheSummaryOfTheOrder ( Sylius\Component\Core\Model\OrderInterface $order )
$order Sylius\Component\Core\Model\OrderInterface

iViewingTheSummaryOfMyLastOrder() public method

iWantToChangeMyPassword() public method

iWantToModifyMyProfile() public method

itShouldBeShippedTo() public method

public itShouldBeShippedTo ( $customerName, $street, $postcode, $city, $countryName )

itShouldHasNumber() public method

public itShouldHasNumber ( $orderNumber )

myEmailShouldBe() public method

public myEmailShouldBe ( $email )

myNameShouldBe() public method

public myNameShouldBe ( $name )

theProductShouldBeInTheItemsList() public method

public theProductShouldBeInTheItemsList ( $productName )

thisOrderShouldHaveNumber() public method

public thisOrderShouldHaveNumber ( Sylius\Component\Core\Model\OrderInterface $order )
$order Sylius\Component\Core\Model\OrderInterface