PHP Class Sylius\Behat\Context\Setup\CustomerContext

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\Component\Core\Repository\CustomerRepositoryInterface $customerRepository, Doctrine\Common\Persistence\ObjectManager $customerManager, Sylius\Component\Resource\Factory\FactoryInterface $customerFactory, Sylius\Component\Resource\Factory\FactoryInterface $userFactory )
theCustomerBelongsToGroup ( Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Customer\Model\CustomerGroupInterface $customerGroup )
theCustomerSubscribedToTheNewsletter ( Sylius\Component\Core\Model\CustomerInterface $customer )
theCustomerVerifiedTheirEmail ( Sylius\Component\Core\Model\CustomerInterface $customer )
theStoreHasCustomer ( $email )
theStoreHasCustomerAccountWithEmailAndPassword ( $name, $email, $password )
theStoreHasCustomerWithFirstName ( $email, $firstName )
theStoreHasCustomerWithLastName ( $email, $lastName )
theStoreHasCustomerWithNameAndEmail ( $name, $email )
theStoreHasCustomerWithNameAndRegistrationDate ( $email, $fullName, $since )
theStoreHasEnabledCustomerAccountWithPassword ( $email, $password )
thereIsAdministratorIdentifiedByEmailAndPassword ( $name, $email, $password )
thereIsDisabledCustomerAccountWithPassword ( $email, $password )

Private Methods

Method Description
createCustomer ( string $email, string | null $firstName = null, string | null $lastName = null, DateTime $createdAt = null )
createCustomerWithUserAccount ( string $email, string $password, boolean $enabled = true, string | null $firstName = null, string | null $lastName = null, string | null $role = null )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Core\Repository\CustomerRepositoryInterface $customerRepository, Doctrine\Common\Persistence\ObjectManager $customerManager, Sylius\Component\Resource\Factory\FactoryInterface $customerFactory, Sylius\Component\Resource\Factory\FactoryInterface $userFactory )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$customerRepository Sylius\Component\Core\Repository\CustomerRepositoryInterface
$customerManager Doctrine\Common\Persistence\ObjectManager
$customerFactory Sylius\Component\Resource\Factory\FactoryInterface
$userFactory Sylius\Component\Resource\Factory\FactoryInterface

theCustomerBelongsToGroup() public method

public theCustomerBelongsToGroup ( Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Customer\Model\CustomerGroupInterface $customerGroup )
$customer Sylius\Component\Core\Model\CustomerInterface
$customerGroup Sylius\Component\Customer\Model\CustomerGroupInterface

theCustomerSubscribedToTheNewsletter() public method

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

theCustomerVerifiedTheirEmail() public method

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

theStoreHasCustomer() public method

public theStoreHasCustomer ( $email )

theStoreHasCustomerAccountWithEmailAndPassword() public method

public theStoreHasCustomerAccountWithEmailAndPassword ( $name, $email, $password )

theStoreHasCustomerWithFirstName() public method

public theStoreHasCustomerWithFirstName ( $email, $firstName )

theStoreHasCustomerWithLastName() public method

public theStoreHasCustomerWithLastName ( $email, $lastName )

theStoreHasCustomerWithNameAndEmail() public method

public theStoreHasCustomerWithNameAndEmail ( $name, $email )

theStoreHasCustomerWithNameAndRegistrationDate() public method

public theStoreHasCustomerWithNameAndRegistrationDate ( $email, $fullName, $since )

theStoreHasEnabledCustomerAccountWithPassword() public method

public theStoreHasEnabledCustomerAccountWithPassword ( $email, $password )

thereIsAdministratorIdentifiedByEmailAndPassword() public method

public thereIsAdministratorIdentifiedByEmailAndPassword ( $name, $email, $password )

thereIsDisabledCustomerAccountWithPassword() public method

public thereIsDisabledCustomerAccountWithPassword ( $email, $password )