PHP Class Sylius\Behat\Context\Ui\Admin\ManagingCustomersContext

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

Public Methods

Method Description
__construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Behat\Page\Admin\Customer\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Crud\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\Customer\UpdatePageInterface $updatePage, Sylius\Behat\Page\Admin\Customer\ShowPageInterface $showPage, Sylius\Behat\Page\Admin\Crud\IndexPageInterface $ordersIndexPage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver )
hisEmailShouldBe ( $email )
hisNameShouldBe ( $name )
hisRegistrationDateShouldBe ( $registrationDate )
hisShippingAddressShouldBe ( $defaultAddress )
iAddIt ( )
iBrowseOrdersOfACustomer ( Sylius\Component\Core\Model\CustomerInterface $customer )
iChangeThePasswordOfUserTo ( Sylius\Component\Core\Model\CustomerInterface $customer, $newPassword )
iChooseCreateAccountOption ( )
iDisableIt ( )
iDoNotChooseCreateAccountOption ( )
iDoNotSpecifyAnyInformation ( )
iEnableIt ( )
iMakeThemSubscribedToTheNewsletter ( )
iRemoveItsEmail ( )
iRemoveItsFirstName ( )
iRemoveItsLastName ( )
iSaveMyChanges ( )
iSelectGender ( $gender )
iSelectGroup ( $group )
iShouldBeAbleToSelectCreateAccountOption ( )
iShouldBeAbleToSpecifyItPassword ( )
iShouldBeNotifiedThatEmailIsNotValid ( )
iShouldBeNotifiedThatEmailMustBeUnique ( )
iShouldBeNotifiedThatFirstNameIsRequired ( $elementName )
iShouldBeNotifiedThatTheElementShouldBe ( $elementName, $validationMessage )
iShouldBeNotifiedThatThePasswordMustBeAtLeastCharactersLong ( $amountOfCharacters )
iShouldBeOnTheCustomerCreationPage ( )
iShouldNotBeAbleToSelectCreateAccountOption ( )
iShouldNotBeAbleToSpecifyItPassword ( )
iShouldNotSeeASingleOrderFromCustomer ( $orderNumber )
iShouldNotSeeCreateAccountOption ( )
iShouldSeeASingleOrderFromCustomer ( $orderNumber )
iShouldSeeASingleOrderInTheList ( )
iShouldSeeCustomersInTheList ( $amountOfCustomers )
iShouldSeeInformationAboutEmailVerification ( )
iShouldSeeInformationAboutNoExistingAccountForThisCustomer ( )
iShouldSeeThatThisCustomerHasVerifiedTheEmail ( )
iShouldSeeThatThisCustomerIsSubscribedToTheNewsletter ( )
iShouldSeeTheCustomerInTheList ( $email )
iSpecifyItsBirthdayAs ( $birthday )
iSpecifyItsEmailAs ( $email = null )
iSpecifyItsFirstNameAs ( $name )
iSpecifyItsLastNameAs ( $name )
iSpecifyItsPasswordAs ( $password )
iSpecifyMyPasswordAs ( $password )
iViewDetailsOfTheCustomer ( Sylius\Component\Core\Model\CustomerInterface $customer )
iWantToChangeMyPassword ( )
iWantToChangeStatusOf ( Sylius\Component\Core\Model\CustomerInterface $customer )
iWantToCreateANewCustomer ( )
iWantToEditThisCustomer ( Sylius\Component\Core\Model\CustomerInterface $customer )
iWantToSeeAllCustomersInStore ( )
theCustomerShould ( Sylius\Component\Core\Model\CustomerInterface $customer )
theCustomerShouldNotAppearInTheStore ( $email )
theCustomerShouldStillHaveAnEmptyFirstName ( Sylius\Component\Core\Model\CustomerInterface $customer )
theCustomerShouldStillHaveAnEmptyLastName ( Sylius\Component\Core\Model\CustomerInterface $customer )
theCustomerWithNameShouldAppearInTheRegistry ( Sylius\Component\Core\Model\CustomerInterface $customer, $name )
theProvinceInTheDefaultAddressShouldBe ( $provinceName )
thereShouldStillBeOnlyOneCustomerWithEmail ( $email )
theyShouldHaveAnAccountCreated ( Sylius\Component\Core\Model\CustomerInterface $customer )
thisCustomerShouldBeDisabled ( Sylius\Component\Core\Model\CustomerInterface $customer )
thisCustomerShouldBeEnabled ( Sylius\Component\Core\Model\CustomerInterface $customer )
thisCustomerShouldBeSubscribedToTheNewsletter ( )
thisCustomerShouldHaveAsTheirGroup ( $groupName )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Behat\Page\Admin\Customer\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Crud\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\Customer\UpdatePageInterface $updatePage, Sylius\Behat\Page\Admin\Customer\ShowPageInterface $showPage, Sylius\Behat\Page\Admin\Crud\IndexPageInterface $ordersIndexPage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$createPage Sylius\Behat\Page\Admin\Customer\CreatePageInterface
$indexPage Sylius\Behat\Page\Admin\Crud\IndexPageInterface
$updatePage Sylius\Behat\Page\Admin\Customer\UpdatePageInterface
$showPage Sylius\Behat\Page\Admin\Customer\ShowPageInterface
$ordersIndexPage Sylius\Behat\Page\Admin\Crud\IndexPageInterface
$currentPageResolver Sylius\Behat\Service\Resolver\CurrentPageResolverInterface

hisEmailShouldBe() public method

public hisEmailShouldBe ( $email )

hisNameShouldBe() public method

public hisNameShouldBe ( $name )

hisRegistrationDateShouldBe() public method

public hisRegistrationDateShouldBe ( $registrationDate )

hisShippingAddressShouldBe() public method

public hisShippingAddressShouldBe ( $defaultAddress )

iAddIt() public method

public iAddIt ( )

iBrowseOrdersOfACustomer() public method

public iBrowseOrdersOfACustomer ( Sylius\Component\Core\Model\CustomerInterface $customer )
$customer Sylius\Component\Core\Model\CustomerInterface

iChangeThePasswordOfUserTo() public method

public iChangeThePasswordOfUserTo ( Sylius\Component\Core\Model\CustomerInterface $customer, $newPassword )
$customer Sylius\Component\Core\Model\CustomerInterface

iChooseCreateAccountOption() public method

iDisableIt() public method

public iDisableIt ( )

iDoNotChooseCreateAccountOption() public method

iDoNotSpecifyAnyInformation() public method

iEnableIt() public method

public iEnableIt ( )

iMakeThemSubscribedToTheNewsletter() public method

iRemoveItsEmail() public method

public iRemoveItsEmail ( )

iRemoveItsFirstName() public method

public iRemoveItsFirstName ( )

iRemoveItsLastName() public method

public iRemoveItsLastName ( )

iSaveMyChanges() public method

public iSaveMyChanges ( )

iSelectGender() public method

public iSelectGender ( $gender )

iSelectGroup() public method

public iSelectGroup ( $group )

iShouldBeAbleToSelectCreateAccountOption() public method

iShouldBeAbleToSpecifyItPassword() public method

iShouldBeNotifiedThatEmailIsNotValid() public method

iShouldBeNotifiedThatEmailMustBeUnique() public method

iShouldBeNotifiedThatFirstNameIsRequired() public method

iShouldBeNotifiedThatTheElementShouldBe() public method

public iShouldBeNotifiedThatTheElementShouldBe ( $elementName, $validationMessage )

iShouldBeNotifiedThatThePasswordMustBeAtLeastCharactersLong() public method

iShouldBeOnTheCustomerCreationPage() public method

iShouldNotBeAbleToSelectCreateAccountOption() public method

iShouldNotBeAbleToSpecifyItPassword() public method

iShouldNotSeeASingleOrderFromCustomer() public method

public iShouldNotSeeASingleOrderFromCustomer ( $orderNumber )

iShouldNotSeeCreateAccountOption() public method

iShouldSeeASingleOrderFromCustomer() public method

public iShouldSeeASingleOrderFromCustomer ( $orderNumber )

iShouldSeeASingleOrderInTheList() public method

iShouldSeeCustomersInTheList() public method

public iShouldSeeCustomersInTheList ( $amountOfCustomers )

iShouldSeeInformationAboutEmailVerification() public method

iShouldSeeInformationAboutNoExistingAccountForThisCustomer() public method

iShouldSeeThatThisCustomerHasVerifiedTheEmail() public method

iShouldSeeThatThisCustomerIsSubscribedToTheNewsletter() public method

iShouldSeeTheCustomerInTheList() public method

public iShouldSeeTheCustomerInTheList ( $email )

iSpecifyItsBirthdayAs() public method

public iSpecifyItsBirthdayAs ( $birthday )

iSpecifyItsEmailAs() public method

public iSpecifyItsEmailAs ( $email = null )

iSpecifyItsFirstNameAs() public method

public iSpecifyItsFirstNameAs ( $name )

iSpecifyItsLastNameAs() public method

public iSpecifyItsLastNameAs ( $name )

iSpecifyItsPasswordAs() public method

public iSpecifyItsPasswordAs ( $password )

iSpecifyMyPasswordAs() public method

public iSpecifyMyPasswordAs ( $password )

iViewDetailsOfTheCustomer() public method

public iViewDetailsOfTheCustomer ( Sylius\Component\Core\Model\CustomerInterface $customer )
$customer Sylius\Component\Core\Model\CustomerInterface

iWantToChangeMyPassword() public method

iWantToChangeStatusOf() public method

public iWantToChangeStatusOf ( Sylius\Component\Core\Model\CustomerInterface $customer )
$customer Sylius\Component\Core\Model\CustomerInterface

iWantToCreateANewCustomer() public method

iWantToEditThisCustomer() public method

public iWantToEditThisCustomer ( Sylius\Component\Core\Model\CustomerInterface $customer )
$customer Sylius\Component\Core\Model\CustomerInterface

iWantToSeeAllCustomersInStore() public method

theCustomerShould() public method

public theCustomerShould ( Sylius\Component\Core\Model\CustomerInterface $customer )
$customer Sylius\Component\Core\Model\CustomerInterface

theCustomerShouldNotAppearInTheStore() public method

theCustomerShouldStillHaveAnEmptyFirstName() public method

public theCustomerShouldStillHaveAnEmptyFirstName ( Sylius\Component\Core\Model\CustomerInterface $customer )
$customer Sylius\Component\Core\Model\CustomerInterface

theCustomerShouldStillHaveAnEmptyLastName() public method

public theCustomerShouldStillHaveAnEmptyLastName ( Sylius\Component\Core\Model\CustomerInterface $customer )
$customer Sylius\Component\Core\Model\CustomerInterface

theCustomerWithNameShouldAppearInTheRegistry() public method

public theCustomerWithNameShouldAppearInTheRegistry ( Sylius\Component\Core\Model\CustomerInterface $customer, $name )
$customer Sylius\Component\Core\Model\CustomerInterface

theProvinceInTheDefaultAddressShouldBe() public method

public theProvinceInTheDefaultAddressShouldBe ( $provinceName )

thereShouldStillBeOnlyOneCustomerWithEmail() public method

theyShouldHaveAnAccountCreated() public method

public theyShouldHaveAnAccountCreated ( Sylius\Component\Core\Model\CustomerInterface $customer )
$customer Sylius\Component\Core\Model\CustomerInterface

thisCustomerShouldBeDisabled() public method

public thisCustomerShouldBeDisabled ( Sylius\Component\Core\Model\CustomerInterface $customer )
$customer Sylius\Component\Core\Model\CustomerInterface

thisCustomerShouldBeEnabled() public method

public thisCustomerShouldBeEnabled ( Sylius\Component\Core\Model\CustomerInterface $customer )
$customer Sylius\Component\Core\Model\CustomerInterface

thisCustomerShouldBeSubscribedToTheNewsletter() public method

thisCustomerShouldHaveAsTheirGroup() public method

public thisCustomerShouldHaveAsTheirGroup ( $groupName )