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

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

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

Метод Описание
__construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Resource\Repository\RepositoryInterface $zoneRepository, Doctrine\Common\Persistence\ObjectManager $objectManager, Sylius\Component\Addressing\Factory\ZoneFactoryInterface $zoneFactory, Sylius\Component\Resource\Factory\FactoryInterface $zoneMemberFactory )
defaultTaxZoneIs ( Sylius\Component\Addressing\Model\ZoneInterface $zone )
itHasTheCountryMemberAndTheCountryMember ( Sylius\Component\Addressing\Model\ZoneInterface $zone, Sylius\Component\Addressing\Model\CountryInterface $country )
itHasTheProvinceMemberAndTheProvinceMember ( Sylius\Component\Addressing\Model\ZoneInterface $zone, Sylius\Component\Addressing\Model\ProvinceInterface $province )
itHasTheZoneMemberAndTheZoneMember ( Sylius\Component\Addressing\Model\ZoneInterface $parentZone, Sylius\Component\Addressing\Model\ZoneInterface $childZone )
theStoreDoesNotHaveAnyZonesDefined ( )
theStoreHasAZoneWithCode ( $zoneName, $code )
thereIsAZoneTheRestOfTheWorldContainingAllOtherCountries ( )

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

Метод Описание
createZoneMember ( Sylius\Component\Resource\Model\CodeAwareInterface $zoneMember ) : Sylius\Component\Addressing\Model\ZoneMemberInterface

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

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

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Resource\Repository\RepositoryInterface $zoneRepository, Doctrine\Common\Persistence\ObjectManager $objectManager, Sylius\Component\Addressing\Factory\ZoneFactoryInterface $zoneFactory, Sylius\Component\Resource\Factory\FactoryInterface $zoneMemberFactory )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$zoneRepository Sylius\Component\Resource\Repository\RepositoryInterface
$objectManager Doctrine\Common\Persistence\ObjectManager
$zoneFactory Sylius\Component\Addressing\Factory\ZoneFactoryInterface
$zoneMemberFactory Sylius\Component\Resource\Factory\FactoryInterface

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

public defaultTaxZoneIs ( Sylius\Component\Addressing\Model\ZoneInterface $zone )
$zone Sylius\Component\Addressing\Model\ZoneInterface

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

public itHasTheCountryMemberAndTheCountryMember ( Sylius\Component\Addressing\Model\ZoneInterface $zone, Sylius\Component\Addressing\Model\CountryInterface $country )
$zone Sylius\Component\Addressing\Model\ZoneInterface
$country Sylius\Component\Addressing\Model\CountryInterface

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

public itHasTheProvinceMemberAndTheProvinceMember ( Sylius\Component\Addressing\Model\ZoneInterface $zone, Sylius\Component\Addressing\Model\ProvinceInterface $province )
$zone Sylius\Component\Addressing\Model\ZoneInterface
$province Sylius\Component\Addressing\Model\ProvinceInterface

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

public itHasTheZoneMemberAndTheZoneMember ( Sylius\Component\Addressing\Model\ZoneInterface $parentZone, Sylius\Component\Addressing\Model\ZoneInterface $childZone )
$parentZone Sylius\Component\Addressing\Model\ZoneInterface
$childZone Sylius\Component\Addressing\Model\ZoneInterface

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

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

public theStoreHasAZoneWithCode ( $zoneName, $code )

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