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

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

Public Methods

Method Description
__construct ( Sylius\Behat\Page\Admin\Zone\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Crud\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\Zone\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker )
iAddAZoneMember ( $name )
iAddIt ( )
iDeleteZoneNamed ( Sylius\Component\Addressing\Model\ZoneInterface $zone )
iDoNotAddACountryMember ( )
iDoNotSpecifyItsCode ( )
iDoNotSpecifyItsName ( )
iNameIt ( $name )
iRemoveTheMember ( Sylius\Component\Addressing\Model\ZoneMemberInterface $zoneMember )
iRenameItTo ( $name )
iSaveMyChanges ( )
iShouldBeNotifiedThatAtLeastOneZoneMemberIsRequired ( )
iShouldBeNotifiedThatIsRequired ( $element )
iShouldBeNotifiedThatThisZoneCannotBeDeleted ( )
iShouldBeNotifiedThatZoneWithThisCodeAlreadyExists ( )
iShouldSeeTheZoneNamedInTheList ( Sylius\Component\Addressing\Model\ZoneInterface $zone )
iShouldSeeZonesInTheList ( $number )
iSpecifyItsCodeAs ( $code )
iWantToCreateANewZoneWithMembers ( $memberType )
iWantToModifyAZoneNamed ( Sylius\Component\Addressing\Model\ZoneInterface $zone )
iWantToSeeAllZonesInStore ( )
itShouldBeOfType ( $type )
theCodeFieldShouldBeDisabled ( )
theTypeFieldShouldBeDisabled ( )
theZoneWithTheCountryShouldAppearInTheRegistry ( Sylius\Component\Addressing\Model\ZoneInterface $zone, Sylius\Component\Addressing\Model\ZoneMemberInterface $zoneMember )
thereShouldStillBeOnlyOneZoneWithCode ( $code )
thisZoneNameShouldBe ( Sylius\Component\Addressing\Model\ZoneInterface $zone, $name )
thisZoneShouldHaveOnlyTheProvinceMember ( Sylius\Component\Addressing\Model\ZoneInterface $zone, Sylius\Component\Addressing\Model\ZoneMemberInterface $zoneMember )
thisZoneShouldNoLongerExistInTheRegistry ( $zoneName )
zoneWithNameShouldNotBeAdded ( $element, $value )

Private Methods

Method Description
assertZoneAndItsMember ( Sylius\Component\Addressing\Model\ZoneInterface $zone, Sylius\Component\Addressing\Model\ZoneMemberInterface $zoneMember )

Method Details

__construct() public method

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

iAddAZoneMember() public method

public iAddAZoneMember ( $name )

iAddIt() public method

public iAddIt ( )

iDeleteZoneNamed() public method

public iDeleteZoneNamed ( Sylius\Component\Addressing\Model\ZoneInterface $zone )
$zone Sylius\Component\Addressing\Model\ZoneInterface

iDoNotAddACountryMember() public method

iDoNotSpecifyItsCode() public method

iDoNotSpecifyItsName() public method

iNameIt() public method

public iNameIt ( $name )

iRemoveTheMember() public method

public iRemoveTheMember ( Sylius\Component\Addressing\Model\ZoneMemberInterface $zoneMember )
$zoneMember Sylius\Component\Addressing\Model\ZoneMemberInterface

iRenameItTo() public method

public iRenameItTo ( $name )

iSaveMyChanges() public method

public iSaveMyChanges ( )

iShouldBeNotifiedThatAtLeastOneZoneMemberIsRequired() public method

iShouldBeNotifiedThatIsRequired() public method

public iShouldBeNotifiedThatIsRequired ( $element )

iShouldBeNotifiedThatThisZoneCannotBeDeleted() public method

iShouldBeNotifiedThatZoneWithThisCodeAlreadyExists() public method

iShouldSeeTheZoneNamedInTheList() public method

public iShouldSeeTheZoneNamedInTheList ( Sylius\Component\Addressing\Model\ZoneInterface $zone )
$zone Sylius\Component\Addressing\Model\ZoneInterface

iShouldSeeZonesInTheList() public method

public iShouldSeeZonesInTheList ( $number )

iSpecifyItsCodeAs() public method

public iSpecifyItsCodeAs ( $code )

iWantToCreateANewZoneWithMembers() public method

public iWantToCreateANewZoneWithMembers ( $memberType )

iWantToModifyAZoneNamed() public method

public iWantToModifyAZoneNamed ( Sylius\Component\Addressing\Model\ZoneInterface $zone )
$zone Sylius\Component\Addressing\Model\ZoneInterface

iWantToSeeAllZonesInStore() public method

itShouldBeOfType() public method

public itShouldBeOfType ( $type )

theCodeFieldShouldBeDisabled() public method

theTypeFieldShouldBeDisabled() public method

theZoneWithTheCountryShouldAppearInTheRegistry() public method

public theZoneWithTheCountryShouldAppearInTheRegistry ( Sylius\Component\Addressing\Model\ZoneInterface $zone, Sylius\Component\Addressing\Model\ZoneMemberInterface $zoneMember )
$zone Sylius\Component\Addressing\Model\ZoneInterface
$zoneMember Sylius\Component\Addressing\Model\ZoneMemberInterface

thereShouldStillBeOnlyOneZoneWithCode() public method

thisZoneNameShouldBe() public method

public thisZoneNameShouldBe ( Sylius\Component\Addressing\Model\ZoneInterface $zone, $name )
$zone Sylius\Component\Addressing\Model\ZoneInterface

thisZoneShouldHaveOnlyTheProvinceMember() public method

public thisZoneShouldHaveOnlyTheProvinceMember ( Sylius\Component\Addressing\Model\ZoneInterface $zone, Sylius\Component\Addressing\Model\ZoneMemberInterface $zoneMember )
$zone Sylius\Component\Addressing\Model\ZoneInterface
$zoneMember Sylius\Component\Addressing\Model\ZoneMemberInterface

thisZoneShouldNoLongerExistInTheRegistry() public method

zoneWithNameShouldNotBeAdded() public method

public zoneWithNameShouldNotBeAdded ( $element, $value )