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

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

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

Метод Описание
__construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Shipping\Repository\ShippingMethodRepositoryInterface $shippingMethodRepository, Sylius\Component\Resource\Repository\RepositoryInterface $zoneRepository, Sylius\Component\Resource\Factory\FactoryInterface $shippingMethodFactory, Sylius\Component\Resource\Factory\FactoryInterface $shippingMethodTranslationFactory, Doctrine\Common\Persistence\ObjectManager $shippingMethodManager )
shippingMethodBelongsToTaxCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Taxation\Model\TaxCategoryInterface $taxCategory )
storeHasDisabledShippingMethodWithFee ( $shippingMethodName, $fee )
storeHasShippingMethodWithFee ( $shippingMethodName, $fee, Sylius\Component\Addressing\Model\ZoneInterface $zone = null )
storeHasShippingMethodWithFeeNotAssignedToAnyChannel ( $shippingMethodName, $fee )
storeHasShippingMethodWithFeePerShipmentForChannels ( $shippingMethodName, $firstFee, Sylius\Component\Core\Model\ChannelInterface $firstChannel, $secondFee, Sylius\Component\Core\Model\ChannelInterface $secondChannel )
storeHasShippingMethodWithFeePerUnitForChannels ( $shippingMethodName, $firstFee, Sylius\Component\Core\Model\ChannelInterface $firstChannel, $secondFee, Sylius\Component\Core\Model\ChannelInterface $secondChannel )
storeShipsEverythingForFree ( Sylius\Component\Addressing\Model\ZoneInterface $zone = null )
theShippingMethodIsDisabled ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
theShippingMethodIsEnabled ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
theStoreAllowsShippingMethod ( $name, $code = null, $position = null )
theStoreAllowsShippingWithAnd ( $firstName, $secondName )
theStoreHasShippingMethodWithFeePerUnit ( $shippingMethodName, $fee )
theStoreShipsEverywhereForFree ( )
theStoreShipsEverywhereForFreeForAllChannels ( array $channels )
thisShippingMethodIsNamedInLocale ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, $name, $locale )
thisShippingMethodRequiresAtLeastOneUnitMatchToShippingCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Shipping\Model\ShippingCategoryInterface $shippingCategory )
thisShippingMethodRequiresThatAllUnitsMatchToShippingCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Shipping\Model\ShippingCategoryInterface $shippingCategory )
thisShippingMethodRequiresThatNoUnitsMatchToShippingCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Shipping\Model\ShippingCategoryInterface $shippingCategory )

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

Метод Описание
createShippingMethod ( string $name, string | null $code = null, integer | null $position = null, Sylius\Component\Addressing\Model\ZoneInterface $zone = null, string $locale = 'en', array $configuration = [], string $calculator = DefaultCalculators::FLAT_RATE, boolean $enabled = true, boolean $addForCurrentChannel = true, array $channels = [] ) : Sylius\Component\Core\Model\ShippingMethodInterface
generateCodeFromNameAndZone ( string $shippingMethodName, string | null $zoneCode = null ) : string
getConfigurationByChannels ( array $channels, integer $amount ) : array

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

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

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Shipping\Repository\ShippingMethodRepositoryInterface $shippingMethodRepository, Sylius\Component\Resource\Repository\RepositoryInterface $zoneRepository, Sylius\Component\Resource\Factory\FactoryInterface $shippingMethodFactory, Sylius\Component\Resource\Factory\FactoryInterface $shippingMethodTranslationFactory, Doctrine\Common\Persistence\ObjectManager $shippingMethodManager )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$shippingMethodRepository Sylius\Component\Shipping\Repository\ShippingMethodRepositoryInterface
$zoneRepository Sylius\Component\Resource\Repository\RepositoryInterface
$shippingMethodFactory Sylius\Component\Resource\Factory\FactoryInterface
$shippingMethodTranslationFactory Sylius\Component\Resource\Factory\FactoryInterface
$shippingMethodManager Doctrine\Common\Persistence\ObjectManager

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

public shippingMethodBelongsToTaxCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Taxation\Model\TaxCategoryInterface $taxCategory )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface
$taxCategory Sylius\Component\Taxation\Model\TaxCategoryInterface

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

public storeHasDisabledShippingMethodWithFee ( $shippingMethodName, $fee )

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

public storeHasShippingMethodWithFee ( $shippingMethodName, $fee, Sylius\Component\Addressing\Model\ZoneInterface $zone = null )
$zone Sylius\Component\Addressing\Model\ZoneInterface

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

public storeHasShippingMethodWithFeeNotAssignedToAnyChannel ( $shippingMethodName, $fee )

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

public storeHasShippingMethodWithFeePerShipmentForChannels ( $shippingMethodName, $firstFee, Sylius\Component\Core\Model\ChannelInterface $firstChannel, $secondFee, Sylius\Component\Core\Model\ChannelInterface $secondChannel )
$firstChannel Sylius\Component\Core\Model\ChannelInterface
$secondChannel Sylius\Component\Core\Model\ChannelInterface

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

public storeHasShippingMethodWithFeePerUnitForChannels ( $shippingMethodName, $firstFee, Sylius\Component\Core\Model\ChannelInterface $firstChannel, $secondFee, Sylius\Component\Core\Model\ChannelInterface $secondChannel )
$firstChannel Sylius\Component\Core\Model\ChannelInterface
$secondChannel Sylius\Component\Core\Model\ChannelInterface

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

public storeShipsEverythingForFree ( Sylius\Component\Addressing\Model\ZoneInterface $zone = null )
$zone Sylius\Component\Addressing\Model\ZoneInterface

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

public theShippingMethodIsDisabled ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface

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

public theShippingMethodIsEnabled ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface

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

public theStoreAllowsShippingMethod ( $name, $code = null, $position = null )

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

public theStoreAllowsShippingWithAnd ( $firstName, $secondName )

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

public theStoreHasShippingMethodWithFeePerUnit ( $shippingMethodName, $fee )

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

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

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

public thisShippingMethodIsNamedInLocale ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, $name, $locale )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface

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

public thisShippingMethodRequiresAtLeastOneUnitMatchToShippingCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Shipping\Model\ShippingCategoryInterface $shippingCategory )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface
$shippingCategory Sylius\Component\Shipping\Model\ShippingCategoryInterface

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

public thisShippingMethodRequiresThatAllUnitsMatchToShippingCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Shipping\Model\ShippingCategoryInterface $shippingCategory )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface
$shippingCategory Sylius\Component\Shipping\Model\ShippingCategoryInterface

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

public thisShippingMethodRequiresThatNoUnitsMatchToShippingCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Shipping\Model\ShippingCategoryInterface $shippingCategory )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface
$shippingCategory Sylius\Component\Shipping\Model\ShippingCategoryInterface