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

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

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

Метод Описание
__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 )

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

Метод Описание
createCurrency ( $currencyCode ) : Sylius\Component\Currency\Model\CurrencyInterface
provideCurrency ( string $currencyCode ) : Sylius\Component\Currency\Model\CurrencyInterface
saveCurrency ( Sylius\Component\Currency\Model\CurrencyInterface $currency )

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

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

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 thatChannelAllowsToShopUsingAndCurrencies ( Sylius\Component\Core\Model\ChannelInterface $channel, $currenciesCodes )
$channel Sylius\Component\Core\Model\ChannelInterface

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

public theStoreHasCurrency ( $currencyCode )

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

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

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

public theStoreHasDisabledCurrency ( $currencyCode )