PHP Class Sylius\Behat\Context\Setup\PaymentContext

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\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 )

Private Methods

Method Description
createPaymentMethod ( string $name, string $code, string $description = '', boolean $addForCurrentChannel = true, $position = null ) : Sylius\Component\Core\Model\PaymentMethodInterface

Method Details

__construct() public method

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 method

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

storeAllowsPaying() public method

public storeAllowsPaying ( $paymentMethodName, $position = null )

storeAllowsPayingForAllChannels() public method

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

theStoreHasAPaymentMethodDisabled() public method

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

theStoreHasAPaymentMethodWithACode() public method

public theStoreHasAPaymentMethodWithACode ( $paymentMethodName, $paymentMethodCode )

theStoreHasPaymentMethodNotAssignedToAnyChannel() public method

public theStoreHasPaymentMethodNotAssignedToAnyChannel ( $paymentMethodName )

thisPaymentMethodIsNamedIn() public method

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