PHP Class Sylius\Behat\Context\Ui\Admin\ManagingPaymentMethodsContext

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

Public Methods

Method Description
__construct ( Sylius\Behat\Page\Admin\PaymentMethod\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Crud\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\PaymentMethod\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver )
iAddIt ( )
iBrowsePaymentMethods ( )
iChooseGateway ( $gatewayName )
iDeletePaymentMethod ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod )
iDescribeItAsIn ( $description, $language )
iDisableIt ( )
iDoNotNameIt ( )
iEnableIt ( )
iMakeItAvailableInChannel ( $channel )
iNameItIn ( $name = null, $language )
iSaveMyChanges ( )
iSetItsInstructionAsIn ( $instructions, $language )
iShouldBeNotifiedThatIsRequired ( $element )
iShouldBeNotifiedThatPaymentMethodWithThisCodeAlreadyExists ( )
iShouldSeePaymentMethodsInTheList ( $amount )
iSortPaymentMethodsBy ( $field )
iSpecifyItsCodeAs ( $code = null )
iWantToCreateANewPaymentMethod ( )
iWantToModifyAPaymentMethod ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod )
theCodeFieldShouldBeDisabled ( )
theFirstPaymentMethodOnTheListShouldHave ( $field, $value )
theLastPaymentMethodOnTheListShouldHave ( $field, $value )
thePaymentMethodShouldAppearInTheRegistry ( $paymentMethodName )
thePaymentMethodShouldBeAvailableInChannel ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod, $channelName )
thePaymentMethodShouldHaveInstructionsIn ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod, $instructions, $language )
thePaymentMethodWithElementValueShouldNotBeAdded ( $element, $value )
thereShouldStillBeOnlyOnePaymentMethodWith ( $element, $code )
thisPaymentMethodElementShouldBe ( $element, $value )
thisPaymentMethodShouldBeDisabled ( )
thisPaymentMethodShouldBeEnabled ( )
thisPaymentMethodShouldNoLongerExistInTheRegistry ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod )
thisShippingMethodNameShouldBe ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod, $paymentMethodName )

Private Methods

Method Description
assertFieldValidationMessage ( string $element, string $expectedMessage )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Page\Admin\PaymentMethod\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Crud\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\PaymentMethod\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver )
$createPage Sylius\Behat\Page\Admin\PaymentMethod\CreatePageInterface
$indexPage Sylius\Behat\Page\Admin\Crud\IndexPageInterface
$updatePage Sylius\Behat\Page\Admin\PaymentMethod\UpdatePageInterface
$currentPageResolver Sylius\Behat\Service\Resolver\CurrentPageResolverInterface

iAddIt() public method

public iAddIt ( )

iBrowsePaymentMethods() public method

iChooseGateway() public method

public iChooseGateway ( $gatewayName )

iDeletePaymentMethod() public method

public iDeletePaymentMethod ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod )
$paymentMethod Sylius\Component\Payment\Model\PaymentMethodInterface

iDescribeItAsIn() public method

public iDescribeItAsIn ( $description, $language )

iDisableIt() public method

public iDisableIt ( )

iDoNotNameIt() public method

public iDoNotNameIt ( )

iEnableIt() public method

public iEnableIt ( )

iMakeItAvailableInChannel() public method

public iMakeItAvailableInChannel ( $channel )

iNameItIn() public method

public iNameItIn ( $name = null, $language )

iSaveMyChanges() public method

public iSaveMyChanges ( )

iSetItsInstructionAsIn() public method

public iSetItsInstructionAsIn ( $instructions, $language )

iShouldBeNotifiedThatIsRequired() public method

public iShouldBeNotifiedThatIsRequired ( $element )

iShouldBeNotifiedThatPaymentMethodWithThisCodeAlreadyExists() public method

iShouldSeePaymentMethodsInTheList() public method

iSortPaymentMethodsBy() public method

public iSortPaymentMethodsBy ( $field )

iSpecifyItsCodeAs() public method

public iSpecifyItsCodeAs ( $code = null )

iWantToCreateANewPaymentMethod() public method

iWantToModifyAPaymentMethod() public method

public iWantToModifyAPaymentMethod ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod )
$paymentMethod Sylius\Component\Payment\Model\PaymentMethodInterface

theCodeFieldShouldBeDisabled() public method

theFirstPaymentMethodOnTheListShouldHave() public method

public theFirstPaymentMethodOnTheListShouldHave ( $field, $value )

theLastPaymentMethodOnTheListShouldHave() public method

public theLastPaymentMethodOnTheListShouldHave ( $field, $value )

thePaymentMethodShouldAppearInTheRegistry() public method

public thePaymentMethodShouldAppearInTheRegistry ( $paymentMethodName )

thePaymentMethodShouldBeAvailableInChannel() public method

public thePaymentMethodShouldBeAvailableInChannel ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod, $channelName )
$paymentMethod Sylius\Component\Payment\Model\PaymentMethodInterface

thePaymentMethodShouldHaveInstructionsIn() public method

public thePaymentMethodShouldHaveInstructionsIn ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod, $instructions, $language )
$paymentMethod Sylius\Component\Payment\Model\PaymentMethodInterface

thePaymentMethodWithElementValueShouldNotBeAdded() public method

thereShouldStillBeOnlyOnePaymentMethodWith() public method

public thereShouldStillBeOnlyOnePaymentMethodWith ( $element, $code )

thisPaymentMethodElementShouldBe() public method

public thisPaymentMethodElementShouldBe ( $element, $value )

thisPaymentMethodShouldBeDisabled() public method

thisPaymentMethodShouldBeEnabled() public method

thisPaymentMethodShouldNoLongerExistInTheRegistry() public method

public thisPaymentMethodShouldNoLongerExistInTheRegistry ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod )
$paymentMethod Sylius\Component\Payment\Model\PaymentMethodInterface

thisShippingMethodNameShouldBe() public method

public thisShippingMethodNameShouldBe ( Sylius\Component\Payment\Model\PaymentMethodInterface $paymentMethod, $paymentMethodName )
$paymentMethod Sylius\Component\Payment\Model\PaymentMethodInterface