PHP Class Sylius\Behat\Context\Setup\AddressContext

Author: Jan Góralski ([email protected])
Inheritance: implements Behat\Behat\Context\Context
Show file Open project: sylius/sylius

Public Methods

Method Description
__construct ( Sylius\Component\Core\Repository\AddressRepositoryInterface $addressRepository, Doctrine\Common\Persistence\ObjectManager $customerManager )
iHaveAnAddressInAddressBook ( Sylius\Component\Core\Model\ShopUserInterface $user, Sylius\Component\Core\Model\AddressInterface $address )
myDefaultAddressIsOf ( Sylius\Component\Core\Model\ShopUserInterface $user, $fullName )
theirDefaultAddressIs ( Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\AddressInterface $address )
thisCustomerHasAnAddressInAddressBook ( Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\AddressInterface $address )

Private Methods

Method Description
addAddressToCustomer ( Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\AddressInterface $address )
setDefaultAddressOfCustomer ( Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\AddressInterface $address )

Method Details

__construct() public method

public __construct ( Sylius\Component\Core\Repository\AddressRepositoryInterface $addressRepository, Doctrine\Common\Persistence\ObjectManager $customerManager )
$addressRepository Sylius\Component\Core\Repository\AddressRepositoryInterface
$customerManager Doctrine\Common\Persistence\ObjectManager

iHaveAnAddressInAddressBook() public method

public iHaveAnAddressInAddressBook ( Sylius\Component\Core\Model\ShopUserInterface $user, Sylius\Component\Core\Model\AddressInterface $address )
$user Sylius\Component\Core\Model\ShopUserInterface
$address Sylius\Component\Core\Model\AddressInterface

myDefaultAddressIsOf() public method

public myDefaultAddressIsOf ( Sylius\Component\Core\Model\ShopUserInterface $user, $fullName )
$user Sylius\Component\Core\Model\ShopUserInterface

theirDefaultAddressIs() public method

public theirDefaultAddressIs ( Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\AddressInterface $address )
$customer Sylius\Component\Core\Model\CustomerInterface
$address Sylius\Component\Core\Model\AddressInterface

thisCustomerHasAnAddressInAddressBook() public method

public thisCustomerHasAnAddressInAddressBook ( Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\AddressInterface $address )
$customer Sylius\Component\Core\Model\CustomerInterface
$address Sylius\Component\Core\Model\AddressInterface