PHP Класс Sylius\Behat\Context\Ui\Admin\ManagingShippingMethodsContext

Автор: Jan Góralski ([email protected])
Автор: Łukasz Chruściel ([email protected])
Наследование: implements Behat\Behat\Context\Context
Показать файл Открыть проект

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

Метод Описание
__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 )

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

Метод Описание
assertFieldValidationMessage ( string $element, string $expectedMessage )
assertShippingMethodState ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, boolean $state )

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

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

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 iAddIt ( )

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

public iChooseCalculator ( $calculatorName )

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

public iDefineItForTheZone ( $zoneName )

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

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

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

public iDescribeItAsIn ( $description, $language )

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

public iDisableIt ( )

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

public iDoNotNameIt ( )

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

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

public iEnableIt ( )

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

public iMakeItAvailableInChannel ( $channelName )

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

public iNameItIn ( $name, $language )

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

public iRemoveItsNameFromTranslation ( $language )

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

public iSaveMyChanges ( )

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

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

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

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

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

public iShouldBeNotifiedThatIsRequired ( $element )

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

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

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

public iShouldSeeShippingMethodsInTheList ( $numberOfShippingMethods )

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

public iSortShippingMethodsBy ( $field )

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

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

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

public iSpecifyItsCodeAs ( $code = null )

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

public iSpecifyItsPositionAs ( $position = null )

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

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

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

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

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

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

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

public theFirstShippingMethodOnTheListShouldHave ( $field, $value )

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

public theLastShippingMethodOnTheListShouldHave ( $field, $value )

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

public theShipmentMethodShouldAppearInTheRegistry ( $shipmentMethodName )

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

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

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

public thereShouldStillBeOnlyOneShippingMethodWith ( $element, $code )

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

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

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

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

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

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

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

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

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

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