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

Author: Jan Góralski ([email protected])
Author: Łukasz Chruściel ([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\Behat\Page\Admin\Crud\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\ShippingMethod\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\ShippingMethod\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker )
iAddIt ( )
iChooseCalculator ( $calculatorName )
iDefineItForTheZone ( $zoneName )
iDeleteShippingMethod ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
iDescribeItAsIn ( $description, $language )
iDisableIt ( )
iDoNotNameIt ( )
iDoNotSpecifyItsZone ( )
iEnableIt ( )
iMakeItAvailableInChannel ( $channelName )
iNameItIn ( $name, $language )
iRemoveItsNameFromTranslation ( $language )
iSaveMyChanges ( )
iShouldBeNotifiedThatAmountForChannelShouldNotBeBlank ( Sylius\Component\Channel\Model\ChannelInterface $channel )
iShouldBeNotifiedThatCodeShouldContain ( )
iShouldBeNotifiedThatElementHasToBeSelected ( $element )
iShouldBeNotifiedThatIsRequired ( $element )
iShouldBeNotifiedThatItIsInUse ( )
iShouldBeNotifiedThatShippingMethodWithThisCodeAlreadyExists ( )
iShouldSeeShippingMethodsInTheList ( $numberOfShippingMethods )
iSortShippingMethodsBy ( $field )
iSpecifyItsAmountForChannel ( $amount, Sylius\Component\Channel\Model\ChannelInterface $channel )
iSpecifyItsCodeAs ( $code = null )
iSpecifyItsPositionAs ( $position = null )
iWantToBrowseShippingMethods ( )
iWantToCreateANewShippingMethod ( )
iWantToModifyAShippingMethod ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
shippingMethodWithElementValueShouldNotBeAdded ( $element, $name )
theCodeFieldShouldBeDisabled ( )
theFirstShippingMethodOnTheListShouldHave ( $field, $value )
theLastShippingMethodOnTheListShouldHave ( $field, $value )
theShipmentMethodShouldAppearInTheRegistry ( $shipmentMethodName )
theShippingMethodShouldBeAvailableInChannel ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, $channelName )
thereShouldStillBeOnlyOneShippingMethodWith ( $element, $code )
thisShippingMethodNameShouldBe ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, $shippingMethodName )
thisShippingMethodShouldBeDisabled ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
thisShippingMethodShouldBeEnabled ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
thisShippingMethodShouldNoLongerExistInTheRegistry ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
thisShippingMethodShouldStillBeInTheRegistry ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )

Private Methods

Method Description
assertFieldValidationMessage ( string $element, string $expectedMessage )
assertShippingMethodState ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, boolean $state )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Behat\Page\Admin\Crud\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\ShippingMethod\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\ShippingMethod\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$indexPage Sylius\Behat\Page\Admin\Crud\IndexPageInterface
$createPage Sylius\Behat\Page\Admin\ShippingMethod\CreatePageInterface
$updatePage Sylius\Behat\Page\Admin\ShippingMethod\UpdatePageInterface
$currentPageResolver Sylius\Behat\Service\Resolver\CurrentPageResolverInterface
$notificationChecker Sylius\Behat\Service\NotificationCheckerInterface

iAddIt() public method

public iAddIt ( )

iChooseCalculator() public method

public iChooseCalculator ( $calculatorName )

iDefineItForTheZone() public method

public iDefineItForTheZone ( $zoneName )

iDeleteShippingMethod() public method

public iDeleteShippingMethod ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface

iDescribeItAsIn() public method

public iDescribeItAsIn ( $description, $language )

iDisableIt() public method

public iDisableIt ( )

iDoNotNameIt() public method

public iDoNotNameIt ( )

iDoNotSpecifyItsZone() public method

iEnableIt() public method

public iEnableIt ( )

iMakeItAvailableInChannel() public method

public iMakeItAvailableInChannel ( $channelName )

iNameItIn() public method

public iNameItIn ( $name, $language )

iRemoveItsNameFromTranslation() public method

public iRemoveItsNameFromTranslation ( $language )

iSaveMyChanges() public method

public iSaveMyChanges ( )

iShouldBeNotifiedThatAmountForChannelShouldNotBeBlank() public method

public iShouldBeNotifiedThatAmountForChannelShouldNotBeBlank ( Sylius\Component\Channel\Model\ChannelInterface $channel )
$channel Sylius\Component\Channel\Model\ChannelInterface

iShouldBeNotifiedThatCodeShouldContain() public method

iShouldBeNotifiedThatElementHasToBeSelected() public method

iShouldBeNotifiedThatIsRequired() public method

public iShouldBeNotifiedThatIsRequired ( $element )

iShouldBeNotifiedThatItIsInUse() public method

iShouldBeNotifiedThatShippingMethodWithThisCodeAlreadyExists() public method

iShouldSeeShippingMethodsInTheList() public method

public iShouldSeeShippingMethodsInTheList ( $numberOfShippingMethods )

iSortShippingMethodsBy() public method

public iSortShippingMethodsBy ( $field )

iSpecifyItsAmountForChannel() public method

public iSpecifyItsAmountForChannel ( $amount, Sylius\Component\Channel\Model\ChannelInterface $channel )
$channel Sylius\Component\Channel\Model\ChannelInterface

iSpecifyItsCodeAs() public method

public iSpecifyItsCodeAs ( $code = null )

iSpecifyItsPositionAs() public method

public iSpecifyItsPositionAs ( $position = null )

iWantToBrowseShippingMethods() public method

iWantToCreateANewShippingMethod() public method

iWantToModifyAShippingMethod() public method

public iWantToModifyAShippingMethod ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface

shippingMethodWithElementValueShouldNotBeAdded() public method

theCodeFieldShouldBeDisabled() public method

theFirstShippingMethodOnTheListShouldHave() public method

public theFirstShippingMethodOnTheListShouldHave ( $field, $value )

theLastShippingMethodOnTheListShouldHave() public method

public theLastShippingMethodOnTheListShouldHave ( $field, $value )

theShipmentMethodShouldAppearInTheRegistry() public method

public theShipmentMethodShouldAppearInTheRegistry ( $shipmentMethodName )

theShippingMethodShouldBeAvailableInChannel() public method

public theShippingMethodShouldBeAvailableInChannel ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, $channelName )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface

thereShouldStillBeOnlyOneShippingMethodWith() public method

public thereShouldStillBeOnlyOneShippingMethodWith ( $element, $code )

thisShippingMethodNameShouldBe() public method

public thisShippingMethodNameShouldBe ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, $shippingMethodName )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface

thisShippingMethodShouldBeDisabled() public method

public thisShippingMethodShouldBeDisabled ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface

thisShippingMethodShouldBeEnabled() public method

public thisShippingMethodShouldBeEnabled ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface

thisShippingMethodShouldNoLongerExistInTheRegistry() public method

public thisShippingMethodShouldNoLongerExistInTheRegistry ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface

thisShippingMethodShouldStillBeInTheRegistry() public method

public thisShippingMethodShouldStillBeInTheRegistry ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod )
$shippingMethod Sylius\Component\Core\Model\ShippingMethodInterface