PHP Класс Sylius\Behat\Context\Setup\CustomerContext

Автор: Anna Walasek ([email protected])
Наследование: implements Behat\Behat\Context\Context
Показать файл Открыть проект

Открытые методы

Метод Описание
__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 )

Приватные методы

Метод Описание
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 )

Описание методов

__construct() публичный Метод

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 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 theCustomerSubscribedToTheNewsletter ( Sylius\Component\Core\Model\CustomerInterface $customer )
$customer Sylius\Component\Core\Model\CustomerInterface

theCustomerVerifiedTheirEmail() публичный Метод

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

theStoreHasCustomer() публичный Метод

public theStoreHasCustomer ( $email )

theStoreHasCustomerAccountWithEmailAndPassword() публичный Метод

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

theStoreHasCustomerWithFirstName() публичный Метод

public theStoreHasCustomerWithFirstName ( $email, $firstName )

theStoreHasCustomerWithLastName() публичный Метод

public theStoreHasCustomerWithLastName ( $email, $lastName )

theStoreHasCustomerWithNameAndEmail() публичный Метод

public theStoreHasCustomerWithNameAndEmail ( $name, $email )

theStoreHasCustomerWithNameAndRegistrationDate() публичный Метод

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

theStoreHasEnabledCustomerAccountWithPassword() публичный Метод

public theStoreHasEnabledCustomerAccountWithPassword ( $email, $password )

thereIsAdministratorIdentifiedByEmailAndPassword() публичный Метод

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

thereIsDisabledCustomerAccountWithPassword() публичный Метод

public thereIsDisabledCustomerAccountWithPassword ( $email, $password )