PHP Class Sylius\Behat\Context\Setup\CurrencyContext

Author: Arkadiusz Krakowiak ([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\Resource\Repository\RepositoryInterface $currencyRepository, Sylius\Component\Resource\Factory\FactoryInterface $currencyFactory, Sylius\Component\Core\Currency\CurrencyStorageInterface $currencyStorage, Doctrine\Common\Persistence\ObjectManager $currencyManager, Doctrine\Common\Persistence\ObjectManager $channelManager )
thatChannelAllowsToShopUsingAndCurrencies ( Sylius\Component\Core\Model\ChannelInterface $channel, $currenciesCodes )
theStoreHasCurrency ( $currencyCode )
theStoreHasCurrencyAnd ( $currencyCode, $secondCurrencyCode, $thirdCurrencyCode = null )
theStoreHasDisabledCurrency ( $currencyCode )

Private Methods

Method Description
createCurrency ( $currencyCode ) : Sylius\Component\Currency\Model\CurrencyInterface
provideCurrency ( string $currencyCode ) : Sylius\Component\Currency\Model\CurrencyInterface
saveCurrency ( Sylius\Component\Currency\Model\CurrencyInterface $currency )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Resource\Repository\RepositoryInterface $currencyRepository, Sylius\Component\Resource\Factory\FactoryInterface $currencyFactory, Sylius\Component\Core\Currency\CurrencyStorageInterface $currencyStorage, Doctrine\Common\Persistence\ObjectManager $currencyManager, Doctrine\Common\Persistence\ObjectManager $channelManager )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$currencyRepository Sylius\Component\Resource\Repository\RepositoryInterface
$currencyFactory Sylius\Component\Resource\Factory\FactoryInterface
$currencyStorage Sylius\Component\Core\Currency\CurrencyStorageInterface
$currencyManager Doctrine\Common\Persistence\ObjectManager
$channelManager Doctrine\Common\Persistence\ObjectManager

thatChannelAllowsToShopUsingAndCurrencies() public method

public thatChannelAllowsToShopUsingAndCurrencies ( Sylius\Component\Core\Model\ChannelInterface $channel, $currenciesCodes )
$channel Sylius\Component\Core\Model\ChannelInterface

theStoreHasCurrency() public method

public theStoreHasCurrency ( $currencyCode )

theStoreHasCurrencyAnd() public method

public theStoreHasCurrencyAnd ( $currencyCode, $secondCurrencyCode, $thirdCurrencyCode = null )

theStoreHasDisabledCurrency() public method

public theStoreHasDisabledCurrency ( $currencyCode )