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

Author: Anna Walasek ([email protected])
Author: Jan Góralski ([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\Component\Resource\Repository\RepositoryInterface $addressRepository, Sylius\Behat\Page\Shop\Account\AddressBook\IndexPageInterface $addressBookIndexPage, Sylius\Behat\Page\Shop\Account\AddressBook\CreatePageInterface $addressBookCreatePage, Sylius\Behat\Page\Shop\Account\AddressBook\UpdatePageInterface $addressBookUpdatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker )
addressShouldBeMarkedAsMyDefaultAddress ( Sylius\Component\Core\Model\AddressInterface $address )
iAddIt ( )
iBrowseMyAddresses ( )
iChangeMyTo ( $field, $value )
iChooseAsMyCountry ( $countryName )
iChooseAsMyProvince ( $provinceName )
iDeleteTheAddress ( $fullname )
iEditAddressOf ( $fullName )
iLeaveEveryFieldEmpty ( )
iSaveChangedAddress ( )
iSetTheAddressOfAsDefault ( $fullName )
iShouldBeNotifiedAboutErrors ( $expectedCount )
iShouldBeNotifiedAboutSuccessfulDelete ( )
iShouldBeNotifiedAboutSuccessfulUpdate ( )
iShouldBeNotifiedThatAddressHasBeenSetAsDefault ( )
iShouldBeNotifiedThatAddressHasBeenSuccessfullyAdded ( )
iShouldBeNotifiedThatTheProvinceNeedsToBeSpecified ( )
iShouldBeUnableToEditTheirAddress ( )
iShouldHaveAddresses ( $count = 1 )
iShouldHaveNoDefaultAddress ( )
iShouldNotSeeAddressOf ( $fullName )
iShouldStillBeOnAddressAdditionPage ( )
iSpecifyAsMyProvince ( $provinceName )
iSpecifyTheAddressAs ( Sylius\Component\Core\Model\AddressInterface $address )
iTryToEditTheAddressOf ( $fullName )
iWantToAddANewAddressToMyAddressBook ( )
itShouldContain ( $value )
thereShouldBeNoAddresses ( )
thisAddressShouldHavePersonFirstNameAndLastName ( $fullName )

Private Methods

Method Description
assertAddressesCountOnPage ( integer $expectedCount )
getAddressOf ( string $fullName ) : Sylius\Component\Core\Model\AddressInterface
getCurrentPage ( ) : Sylius\Behat\Page\SymfonyPageInterface

Method Details

__construct() public method

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Resource\Repository\RepositoryInterface $addressRepository, Sylius\Behat\Page\Shop\Account\AddressBook\IndexPageInterface $addressBookIndexPage, Sylius\Behat\Page\Shop\Account\AddressBook\CreatePageInterface $addressBookCreatePage, Sylius\Behat\Page\Shop\Account\AddressBook\UpdatePageInterface $addressBookUpdatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$addressRepository Sylius\Component\Resource\Repository\RepositoryInterface
$addressBookIndexPage Sylius\Behat\Page\Shop\Account\AddressBook\IndexPageInterface
$addressBookCreatePage Sylius\Behat\Page\Shop\Account\AddressBook\CreatePageInterface
$addressBookUpdatePage Sylius\Behat\Page\Shop\Account\AddressBook\UpdatePageInterface
$currentPageResolver Sylius\Behat\Service\Resolver\CurrentPageResolverInterface
$notificationChecker Sylius\Behat\Service\NotificationCheckerInterface

addressShouldBeMarkedAsMyDefaultAddress() public method

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

iAddIt() public method

public iAddIt ( )

iBrowseMyAddresses() public method

public iBrowseMyAddresses ( )

iChangeMyTo() public method

public iChangeMyTo ( $field, $value )

iChooseAsMyCountry() public method

public iChooseAsMyCountry ( $countryName )

iChooseAsMyProvince() public method

public iChooseAsMyProvince ( $provinceName )

iDeleteTheAddress() public method

public iDeleteTheAddress ( $fullname )

iEditAddressOf() public method

public iEditAddressOf ( $fullName )

iLeaveEveryFieldEmpty() public method

iSaveChangedAddress() public method

public iSaveChangedAddress ( )

iSetTheAddressOfAsDefault() public method

public iSetTheAddressOfAsDefault ( $fullName )

iShouldBeNotifiedAboutErrors() public method

public iShouldBeNotifiedAboutErrors ( $expectedCount )

iShouldBeNotifiedAboutSuccessfulDelete() public method

iShouldBeNotifiedAboutSuccessfulUpdate() public method

iShouldBeNotifiedThatAddressHasBeenSetAsDefault() public method

iShouldBeNotifiedThatAddressHasBeenSuccessfullyAdded() public method

iShouldBeNotifiedThatTheProvinceNeedsToBeSpecified() public method

iShouldBeUnableToEditTheirAddress() public method

iShouldHaveAddresses() public method

public iShouldHaveAddresses ( $count = 1 )

iShouldHaveNoDefaultAddress() public method

iShouldNotSeeAddressOf() public method

public iShouldNotSeeAddressOf ( $fullName )

iShouldStillBeOnAddressAdditionPage() public method

iSpecifyAsMyProvince() public method

public iSpecifyAsMyProvince ( $provinceName )

iSpecifyTheAddressAs() public method

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

iTryToEditTheAddressOf() public method

public iTryToEditTheAddressOf ( $fullName )

iWantToAddANewAddressToMyAddressBook() public method

itShouldContain() public method

public itShouldContain ( $value )

thereShouldBeNoAddresses() public method

thisAddressShouldHavePersonFirstNameAndLastName() public method