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

Author: Arkadiusz Krakowiak ([email protected])
Inheritance: implements Behat\Behat\Context\Context
Afficher le fichier Open project: sylius/sylius

Méthodes publiques

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

Méthode Description
assertZoneAndItsMember ( Sylius\Component\Addressing\Model\ZoneInterface $zone, Sylius\Component\Addressing\Model\ZoneMemberInterface $zoneMember )

Method Details

__construct() public méthode

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

public iAddAZoneMember ( $name )

iAddIt() public méthode

public iAddIt ( )

iDeleteZoneNamed() public méthode

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

iDoNotAddACountryMember() public méthode

iDoNotSpecifyItsCode() public méthode

iDoNotSpecifyItsName() public méthode

iNameIt() public méthode

public iNameIt ( $name )

iRemoveTheMember() public méthode

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

iRenameItTo() public méthode

public iRenameItTo ( $name )

iSaveMyChanges() public méthode

public iSaveMyChanges ( )

iShouldBeNotifiedThatAtLeastOneZoneMemberIsRequired() public méthode

iShouldBeNotifiedThatIsRequired() public méthode

public iShouldBeNotifiedThatIsRequired ( $element )

iShouldBeNotifiedThatThisZoneCannotBeDeleted() public méthode

iShouldBeNotifiedThatZoneWithThisCodeAlreadyExists() public méthode

iShouldSeeTheZoneNamedInTheList() public méthode

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

iShouldSeeZonesInTheList() public méthode

public iShouldSeeZonesInTheList ( $number )

iSpecifyItsCodeAs() public méthode

public iSpecifyItsCodeAs ( $code )

iWantToCreateANewZoneWithMembers() public méthode

public iWantToCreateANewZoneWithMembers ( $memberType )

iWantToModifyAZoneNamed() public méthode

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

iWantToSeeAllZonesInStore() public méthode

itShouldBeOfType() public méthode

public itShouldBeOfType ( $type )

theCodeFieldShouldBeDisabled() public méthode

theTypeFieldShouldBeDisabled() public méthode

theZoneWithTheCountryShouldAppearInTheRegistry() public méthode

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

thisZoneNameShouldBe() public méthode

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

thisZoneShouldHaveOnlyTheProvinceMember() public méthode

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

zoneWithNameShouldNotBeAdded() public méthode

public zoneWithNameShouldNotBeAdded ( $element, $value )