PHP Class Sylius\Behat\Context\Transform\AddressContext

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

Public Methods

Method 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

Method 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 method

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 method

public createEmptyAddress ( )

createNewAddress() public method

public createNewAddress ( $countryName )

createNewAddressWith() public method

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

createNewAddressWithName() public method

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

getByStreet() public method

public getByStreet ( $street )