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

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

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

Метод Описание
__construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Payment\Repository\PaymentMethodRepositoryInterface $paymentMethodRepository, Sylius\Component\Resource\Factory\FactoryInterface $paymentMethodFactory, Sylius\Component\Resource\Factory\FactoryInterface $paymentMethodTranslationFactory, Sylius\Bundle\CoreBundle\Test\Services\PaymentMethodNameToGatewayConverterInterface $paymentMethodNameToGatewayConverter, Doctrine\Common\Persistence\ObjectManager $objectManager )
itHasInstructions ( Sylius\Component\Core\Model\PaymentMethodInterface $paymentMethod, $instructions )
storeAllowsPaying ( $paymentMethodName, $position = null )
storeAllowsPayingForAllChannels ( $paymentMethodName, array $channels )
theStoreHasAPaymentMethodDisabled ( Sylius\Component\Core\Model\PaymentMethodInterface $paymentMethod )
theStoreHasAPaymentMethodWithACode ( $paymentMethodName, $paymentMethodCode )
theStoreHasPaymentMethodNotAssignedToAnyChannel ( $paymentMethodName )
thisPaymentMethodIsNamedIn ( Sylius\Component\Core\Model\PaymentMethodInterface $paymentMethod, $name, $locale )

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

Метод Описание
createPaymentMethod ( string $name, string $code, string $description = '', boolean $addForCurrentChannel = true, $position = null ) : Sylius\Component\Core\Model\PaymentMethodInterface

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

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

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Payment\Repository\PaymentMethodRepositoryInterface $paymentMethodRepository, Sylius\Component\Resource\Factory\FactoryInterface $paymentMethodFactory, Sylius\Component\Resource\Factory\FactoryInterface $paymentMethodTranslationFactory, Sylius\Bundle\CoreBundle\Test\Services\PaymentMethodNameToGatewayConverterInterface $paymentMethodNameToGatewayConverter, Doctrine\Common\Persistence\ObjectManager $objectManager )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$paymentMethodRepository Sylius\Component\Payment\Repository\PaymentMethodRepositoryInterface
$paymentMethodFactory Sylius\Component\Resource\Factory\FactoryInterface
$paymentMethodTranslationFactory Sylius\Component\Resource\Factory\FactoryInterface
$paymentMethodNameToGatewayConverter Sylius\Bundle\CoreBundle\Test\Services\PaymentMethodNameToGatewayConverterInterface
$objectManager Doctrine\Common\Persistence\ObjectManager

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

public itHasInstructions ( Sylius\Component\Core\Model\PaymentMethodInterface $paymentMethod, $instructions )
$paymentMethod Sylius\Component\Core\Model\PaymentMethodInterface

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

public storeAllowsPaying ( $paymentMethodName, $position = null )

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

public storeAllowsPayingForAllChannels ( $paymentMethodName, array $channels )
$channels array

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

public theStoreHasAPaymentMethodDisabled ( Sylius\Component\Core\Model\PaymentMethodInterface $paymentMethod )
$paymentMethod Sylius\Component\Core\Model\PaymentMethodInterface

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

public theStoreHasAPaymentMethodWithACode ( $paymentMethodName, $paymentMethodCode )

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

public theStoreHasPaymentMethodNotAssignedToAnyChannel ( $paymentMethodName )

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

public thisPaymentMethodIsNamedIn ( Sylius\Component\Core\Model\PaymentMethodInterface $paymentMethod, $name, $locale )
$paymentMethod Sylius\Component\Core\Model\PaymentMethodInterface