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

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

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

Метод Описание
__construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\User\Repository\UserRepositoryInterface $userRepository, Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface $userFactory, Sylius\Component\Resource\Factory\FactoryInterface $addressFactory, Doctrine\Common\Persistence\ObjectManager $userManager, Sylius\Component\Addressing\Converter\CountryNameConverterInterface $countryCodeConverter )
aVerificationEmailHasBeenSentTo ( $email )
accountIsNotVerified ( Sylius\Component\User\Model\UserInterface $user )
accountWasDeleted ( $email )
hisAccountWasDeleted ( )
iHaveAlreadyVerifiedMyAccount ( Sylius\Component\User\Model\UserInterface $user )
iHaveReceivedVerificationEmail ( Sylius\Component\User\Model\UserInterface $user )
myDefaultShippingAddressIs ( $country )
thereIsUserIdentifiedBy ( $email, $password = 'sylius' )
thereIsUserWithShippingCountry ( $email, $password, $country )

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

Метод Описание
createAddress ( string $firstName, string $lastName, string $country = 'United States', string $street = 'Jones St. 114', string $city = 'Paradise City', string $postcode = '99999' ) : Sylius\Component\Addressing\Model\AddressInterface
prepareUserVerification ( Sylius\Component\User\Model\UserInterface $user )

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

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

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\User\Repository\UserRepositoryInterface $userRepository, Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface $userFactory, Sylius\Component\Resource\Factory\FactoryInterface $addressFactory, Doctrine\Common\Persistence\ObjectManager $userManager, Sylius\Component\Addressing\Converter\CountryNameConverterInterface $countryCodeConverter )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$userRepository Sylius\Component\User\Repository\UserRepositoryInterface
$userFactory Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface
$addressFactory Sylius\Component\Resource\Factory\FactoryInterface
$userManager Doctrine\Common\Persistence\ObjectManager
$countryCodeConverter Sylius\Component\Addressing\Converter\CountryNameConverterInterface

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

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

public accountIsNotVerified ( Sylius\Component\User\Model\UserInterface $user )
$user Sylius\Component\User\Model\UserInterface

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

public accountWasDeleted ( $email )

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

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

public iHaveAlreadyVerifiedMyAccount ( Sylius\Component\User\Model\UserInterface $user )
$user Sylius\Component\User\Model\UserInterface

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

public iHaveReceivedVerificationEmail ( Sylius\Component\User\Model\UserInterface $user )
$user Sylius\Component\User\Model\UserInterface

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

public myDefaultShippingAddressIs ( $country )

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

public thereIsUserIdentifiedBy ( $email, $password = 'sylius' )

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

public thereIsUserWithShippingCountry ( $email, $password, $country )