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

Author: Łukasz Chruściel ([email protected])
Inheritance: implements Behat\Behat\Context\Context
显示文件 Open project: sylius/sylius

Public Methods

Method Description
__construct ( Sylius\Behat\Page\Admin\Channel\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\Channel\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Channel\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker )
channelShouldNotHaveDefaultTaxZone ( Sylius\Component\Core\Model\ChannelInterface $channel )
channelWithShouldNotBeAdded ( $element, $value )
iAddIt ( )
iAllowToPayingForThisChannel ( $currencyCode )
iChooseAsABaseCurrency ( $currency = null )
iChooseAsADefaultLocale ( $locale = null )
iDefineItsColorAs ( $color )
iDeleteChannel ( Sylius\Component\Core\Model\ChannelInterface $channel )
iDescribeItAs ( $description )
iDisableIt ( )
iEnableIt ( )
iMakeItAvailableIn ( $locale )
iNameIt ( $name = null )
iRemoveItsDefaultTaxZone ( )
iSaveMyChanges ( )
iSelectDefaultTaxZone ( $taxZone )
iSelectTaxCalculationStrategy ( $taxCalculationStrategy )
iSetItsHostnameAs ( $hostname )
iShouldBeNotifiedThatAtLeastOneChannelHasToBeDefinedIsRequired ( )
iShouldBeNotifiedThatChannelWithThisCodeAlreadyExists ( )
iShouldBeNotifiedThatIsRequired ( $element )
iShouldBeNotifiedThatItCannotBeDeleted ( )
iShouldSeeChannelsInTheList ( $numberOfChannels )
iSpecifyItsCodeAs ( $code = null )
iWantToBrowseChannels ( )
iWantToCreateANewChannel ( )
iWantToModifyChannel ( Sylius\Component\Core\Model\ChannelInterface $channel )
payingInEuroShouldBePossibleForTheChannel ( $currencyCode, Sylius\Component\Core\Model\ChannelInterface $channel )
theBaseCurrencyFieldShouldBeDisabled ( )
theChannelShouldAppearInTheRegistry ( $channelName )
theChannelShouldBeAvailableIn ( Sylius\Component\Core\Model\ChannelInterface $channel, $locale )
theCodeFieldShouldBeDisabled ( )
theDefaultTaxZoneForTheChannelShouldBe ( Sylius\Component\Core\Model\ChannelInterface $channel, $taxZone )
theTaxCalculationStrategyForTheChannelShouldBe ( Sylius\Component\Core\Model\ChannelInterface $channel, $taxCalculationStrategy )
thereShouldStillBeOnlyOneChannelWithCode ( $element, $value )
thisChannelNameShouldBe ( Sylius\Component\Core\Model\ChannelInterface $channel, $channelName )
thisChannelShouldAppearInTheRegistry ( Sylius\Component\Core\Model\ChannelInterface $channel )
thisChannelShouldBeDisabled ( Sylius\Component\Core\Model\ChannelInterface $channel )
thisChannelShouldBeEnabled ( Sylius\Component\Core\Model\ChannelInterface $channel )
thisChannelShouldNoLongerExistInTheRegistry ( $channelName )

Private Methods

Method Description
assertChannelState ( Sylius\Component\Core\Model\ChannelInterface $channel, boolean $state )

Method Details

__construct() public method

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

channelShouldNotHaveDefaultTaxZone() public method

public channelShouldNotHaveDefaultTaxZone ( Sylius\Component\Core\Model\ChannelInterface $channel )
$channel Sylius\Component\Core\Model\ChannelInterface

channelWithShouldNotBeAdded() public method

public channelWithShouldNotBeAdded ( $element, $value )

iAddIt() public method

public iAddIt ( )

iAllowToPayingForThisChannel() public method

public iAllowToPayingForThisChannel ( $currencyCode )

iChooseAsABaseCurrency() public method

public iChooseAsABaseCurrency ( $currency = null )

iChooseAsADefaultLocale() public method

public iChooseAsADefaultLocale ( $locale = null )

iDefineItsColorAs() public method

public iDefineItsColorAs ( $color )

iDeleteChannel() public method

public iDeleteChannel ( Sylius\Component\Core\Model\ChannelInterface $channel )
$channel Sylius\Component\Core\Model\ChannelInterface

iDescribeItAs() public method

public iDescribeItAs ( $description )

iDisableIt() public method

public iDisableIt ( )

iEnableIt() public method

public iEnableIt ( )

iMakeItAvailableIn() public method

public iMakeItAvailableIn ( $locale )

iNameIt() public method

public iNameIt ( $name = null )

iRemoveItsDefaultTaxZone() public method

iSaveMyChanges() public method

public iSaveMyChanges ( )

iSelectDefaultTaxZone() public method

public iSelectDefaultTaxZone ( $taxZone )

iSelectTaxCalculationStrategy() public method

public iSelectTaxCalculationStrategy ( $taxCalculationStrategy )

iSetItsHostnameAs() public method

public iSetItsHostnameAs ( $hostname )

iShouldBeNotifiedThatAtLeastOneChannelHasToBeDefinedIsRequired() public method

iShouldBeNotifiedThatChannelWithThisCodeAlreadyExists() public method

iShouldBeNotifiedThatIsRequired() public method

public iShouldBeNotifiedThatIsRequired ( $element )

iShouldBeNotifiedThatItCannotBeDeleted() public method

iShouldSeeChannelsInTheList() public method

public iShouldSeeChannelsInTheList ( $numberOfChannels )

iSpecifyItsCodeAs() public method

public iSpecifyItsCodeAs ( $code = null )

iWantToBrowseChannels() public method

iWantToCreateANewChannel() public method

iWantToModifyChannel() public method

public iWantToModifyChannel ( Sylius\Component\Core\Model\ChannelInterface $channel )
$channel Sylius\Component\Core\Model\ChannelInterface

payingInEuroShouldBePossibleForTheChannel() public method

public payingInEuroShouldBePossibleForTheChannel ( $currencyCode, Sylius\Component\Core\Model\ChannelInterface $channel )
$channel Sylius\Component\Core\Model\ChannelInterface

theBaseCurrencyFieldShouldBeDisabled() public method

theChannelShouldAppearInTheRegistry() public method

public theChannelShouldAppearInTheRegistry ( $channelName )

theChannelShouldBeAvailableIn() public method

public theChannelShouldBeAvailableIn ( Sylius\Component\Core\Model\ChannelInterface $channel, $locale )
$channel Sylius\Component\Core\Model\ChannelInterface

theCodeFieldShouldBeDisabled() public method

theDefaultTaxZoneForTheChannelShouldBe() public method

public theDefaultTaxZoneForTheChannelShouldBe ( Sylius\Component\Core\Model\ChannelInterface $channel, $taxZone )
$channel Sylius\Component\Core\Model\ChannelInterface

theTaxCalculationStrategyForTheChannelShouldBe() public method

public theTaxCalculationStrategyForTheChannelShouldBe ( Sylius\Component\Core\Model\ChannelInterface $channel, $taxCalculationStrategy )
$channel Sylius\Component\Core\Model\ChannelInterface

thereShouldStillBeOnlyOneChannelWithCode() public method

public thereShouldStillBeOnlyOneChannelWithCode ( $element, $value )

thisChannelNameShouldBe() public method

public thisChannelNameShouldBe ( Sylius\Component\Core\Model\ChannelInterface $channel, $channelName )
$channel Sylius\Component\Core\Model\ChannelInterface

thisChannelShouldAppearInTheRegistry() public method

public thisChannelShouldAppearInTheRegistry ( Sylius\Component\Core\Model\ChannelInterface $channel )
$channel Sylius\Component\Core\Model\ChannelInterface

thisChannelShouldBeDisabled() public method

public thisChannelShouldBeDisabled ( Sylius\Component\Core\Model\ChannelInterface $channel )
$channel Sylius\Component\Core\Model\ChannelInterface

thisChannelShouldBeEnabled() public method

public thisChannelShouldBeEnabled ( Sylius\Component\Core\Model\ChannelInterface $channel )
$channel Sylius\Component\Core\Model\ChannelInterface

thisChannelShouldNoLongerExistInTheRegistry() public method