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
Afficher le fichier Open project: sylius/sylius

Méthodes publiques

Méthode 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

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

Method Details

__construct() public méthode

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 méthode

public iAddIt ( )

iChooseCalculator() public méthode

public iChooseCalculator ( $calculatorName )

iDefineItForTheZone() public méthode

public iDefineItForTheZone ( $zoneName )

iDeleteShippingMethod() public méthode

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

iDescribeItAsIn() public méthode

public iDescribeItAsIn ( $description, $language )

iDisableIt() public méthode

public iDisableIt ( )

iDoNotNameIt() public méthode

public iDoNotNameIt ( )

iDoNotSpecifyItsZone() public méthode

iEnableIt() public méthode

public iEnableIt ( )

iMakeItAvailableInChannel() public méthode

public iMakeItAvailableInChannel ( $channelName )

iNameItIn() public méthode

public iNameItIn ( $name, $language )

iRemoveItsNameFromTranslation() public méthode

public iRemoveItsNameFromTranslation ( $language )

iSaveMyChanges() public méthode

public iSaveMyChanges ( )

iShouldBeNotifiedThatAmountForChannelShouldNotBeBlank() public méthode

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

iShouldBeNotifiedThatCodeShouldContain() public méthode

iShouldBeNotifiedThatElementHasToBeSelected() public méthode

iShouldBeNotifiedThatIsRequired() public méthode

public iShouldBeNotifiedThatIsRequired ( $element )

iShouldBeNotifiedThatItIsInUse() public méthode

iShouldBeNotifiedThatShippingMethodWithThisCodeAlreadyExists() public méthode

iShouldSeeShippingMethodsInTheList() public méthode

public iShouldSeeShippingMethodsInTheList ( $numberOfShippingMethods )

iSortShippingMethodsBy() public méthode

public iSortShippingMethodsBy ( $field )

iSpecifyItsAmountForChannel() public méthode

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

iSpecifyItsCodeAs() public méthode

public iSpecifyItsCodeAs ( $code = null )

iSpecifyItsPositionAs() public méthode

public iSpecifyItsPositionAs ( $position = null )

iWantToBrowseShippingMethods() public méthode

iWantToCreateANewShippingMethod() public méthode

iWantToModifyAShippingMethod() public méthode

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

shippingMethodWithElementValueShouldNotBeAdded() public méthode

theCodeFieldShouldBeDisabled() public méthode

theFirstShippingMethodOnTheListShouldHave() public méthode

public theFirstShippingMethodOnTheListShouldHave ( $field, $value )

theLastShippingMethodOnTheListShouldHave() public méthode

public theLastShippingMethodOnTheListShouldHave ( $field, $value )

theShipmentMethodShouldAppearInTheRegistry() public méthode

public theShipmentMethodShouldAppearInTheRegistry ( $shipmentMethodName )

theShippingMethodShouldBeAvailableInChannel() public méthode

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

thereShouldStillBeOnlyOneShippingMethodWith() public méthode

public thereShouldStillBeOnlyOneShippingMethodWith ( $element, $code )

thisShippingMethodNameShouldBe() public méthode

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

thisShippingMethodShouldBeDisabled() public méthode

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

thisShippingMethodShouldBeEnabled() public méthode

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

thisShippingMethodShouldNoLongerExistInTheRegistry() public méthode

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

thisShippingMethodShouldStillBeInTheRegistry() public méthode

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