PHP Class Sylius\Behat\Context\Transform\AddressContext

Author: Łukasz Chruściel ([email protected])
Inheritance: implements Behat\Behat\Context\Context
Afficher le fichier Open project: sylius/sylius

Méthodes publiques

Méthode Description
__construct ( Sylius\Component\Resource\Factory\FactoryInterface $addressFactory, Sylius\Component\Addressing\Converter\CountryNameConverterInterface $countryNameConverter, Sylius\Component\Core\Repository\AddressRepositoryInterface $addressRepository )
createEmptyAddress ( )
createNewAddress ( $countryName )
createNewAddressWith ( $cityName, $street, $postcode, $countryName, $customerName, $provinceName = null )
createNewAddressWithName ( $name, $street, $postcode, $city, $countryName, $provinceName = null )
getByStreet ( $street )

Private Methods

Méthode Description
createAddress ( string $countryCode = 'US', string $firstName = 'John', string $lastName = 'Doe', string $city = 'Ankh Morpork', string $street = 'Frost Alley', string $postCode = '90210', string $provinceName = null ) : Sylius\Component\Core\Model\AddressInterface

Method Details

__construct() public méthode

public __construct ( Sylius\Component\Resource\Factory\FactoryInterface $addressFactory, Sylius\Component\Addressing\Converter\CountryNameConverterInterface $countryNameConverter, Sylius\Component\Core\Repository\AddressRepositoryInterface $addressRepository )
$addressFactory Sylius\Component\Resource\Factory\FactoryInterface
$countryNameConverter Sylius\Component\Addressing\Converter\CountryNameConverterInterface
$addressRepository Sylius\Component\Core\Repository\AddressRepositoryInterface

createEmptyAddress() public méthode

public createEmptyAddress ( )

createNewAddress() public méthode

public createNewAddress ( $countryName )

createNewAddressWith() public méthode

public createNewAddressWith ( $cityName, $street, $postcode, $countryName, $customerName, $provinceName = null )

createNewAddressWithName() public méthode

public createNewAddressWithName ( $name, $street, $postcode, $city, $countryName, $provinceName = null )

getByStreet() public méthode

public getByStreet ( $street )