PHP Class Sylius\Behat\Context\Setup\ChannelContext

Author: Arkadiusz Krakowiak ([email protected])
Author: Mateusz Zalewski ([email protected])
Inheritance: implements Behat\Behat\Context\Context
Show file Open project: sylius/sylius

Public Methods

Method Description
__construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Core\Test\Services\DefaultChannelFactoryInterface $unitedStatesChannelFactory, Sylius\Component\Core\Test\Services\DefaultChannelFactoryInterface $defaultChannelFactory, Sylius\Component\Channel\Factory\ChannelFactoryInterface $channelFactory, Sylius\Component\Channel\Repository\ChannelRepositoryInterface $channelRepository, Doctrine\Common\Persistence\ObjectManager $channelManager, Sylius\Component\Core\Currency\CurrencyStorageInterface $currencyStorage )
iChannelHasBeenDeleted ( Sylius\Component\Core\Model\ChannelInterface $channel )
itsDefaultTaxRateIs ( Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Addressing\Model\ZoneInterface $defaultTaxZone )
storeOperatesOnASingleChannel ( $currencyCode = null )
storeOperatesOnASingleChannelInTheUnitedStatesNamed ( $channelIdentifier )
storeOperatesOnASingleChannelInUnitedStates ( )
theChannelIsDisabled ( Sylius\Component\Core\Model\ChannelInterface $channel )
theChannelIsEnabled ( Sylius\Component\Core\Model\ChannelInterface $channel )
theStoreOperatesOnAChannelNamed ( $channelIdentifier, $currencyCode = null )

Private Methods

Method Description
changeChannelState ( Sylius\Component\Core\Model\ChannelInterface $channel, boolean $state )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Core\Test\Services\DefaultChannelFactoryInterface $unitedStatesChannelFactory, Sylius\Component\Core\Test\Services\DefaultChannelFactoryInterface $defaultChannelFactory, Sylius\Component\Channel\Factory\ChannelFactoryInterface $channelFactory, Sylius\Component\Channel\Repository\ChannelRepositoryInterface $channelRepository, Doctrine\Common\Persistence\ObjectManager $channelManager, Sylius\Component\Core\Currency\CurrencyStorageInterface $currencyStorage )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$unitedStatesChannelFactory Sylius\Component\Core\Test\Services\DefaultChannelFactoryInterface
$defaultChannelFactory Sylius\Component\Core\Test\Services\DefaultChannelFactoryInterface
$channelFactory Sylius\Component\Channel\Factory\ChannelFactoryInterface
$channelRepository Sylius\Component\Channel\Repository\ChannelRepositoryInterface
$channelManager Doctrine\Common\Persistence\ObjectManager
$currencyStorage Sylius\Component\Core\Currency\CurrencyStorageInterface

iChannelHasBeenDeleted() public method

public iChannelHasBeenDeleted ( Sylius\Component\Core\Model\ChannelInterface $channel )
$channel Sylius\Component\Core\Model\ChannelInterface

itsDefaultTaxRateIs() public method

public itsDefaultTaxRateIs ( Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Addressing\Model\ZoneInterface $defaultTaxZone )
$channel Sylius\Component\Core\Model\ChannelInterface
$defaultTaxZone Sylius\Component\Addressing\Model\ZoneInterface

storeOperatesOnASingleChannel() public method

public storeOperatesOnASingleChannel ( $currencyCode = null )

storeOperatesOnASingleChannelInTheUnitedStatesNamed() public method

storeOperatesOnASingleChannelInUnitedStates() public method

theChannelIsDisabled() public method

public theChannelIsDisabled ( Sylius\Component\Core\Model\ChannelInterface $channel )
$channel Sylius\Component\Core\Model\ChannelInterface

theChannelIsEnabled() public method

public theChannelIsEnabled ( Sylius\Component\Core\Model\ChannelInterface $channel )
$channel Sylius\Component\Core\Model\ChannelInterface

theStoreOperatesOnAChannelNamed() public method

public theStoreOperatesOnAChannelNamed ( $channelIdentifier, $currencyCode = null )