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

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\Country\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\Country\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Country\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver )
countryShouldAppearInTheStore ( Sylius\Component\Addressing\Model\CountryInterface $country )
countryShouldHaveProvince ( Sylius\Component\Addressing\Model\CountryInterface $country, $provinceName )
iAddIt ( )
iAddProvinceWithCode ( $provinceName, $provinceCode, $provinceAbbreviation = null )
iChoose ( $countryName )
iDeleteTheProvinceOfCountry ( $provinceName, Sylius\Component\Addressing\Model\CountryInterface $country )
iDisableIt ( )
iEnableIt ( )
iNameTheProvince ( $provinceName = null )
iRemoveProvinceName ( $provinceName )
iSaveMyChanges ( )
iShouldBeNotifiedThatElementIsRequired ( $element )
iShouldBeNotifiedThatProvinceCodeMustBeUnique ( )
iShouldNotBeAbleToChoose ( $name )
iSpecifyTheProvinceCode ( $provinceCode = null )
iWantToAddNewCountry ( )
iWantToCreateANewProvinceInCountry ( Sylius\Component\Addressing\Model\CountryInterface $country )
iWantToEditThisCountry ( Sylius\Component\Addressing\Model\CountryInterface $country )
provinceWithCodeShouldNotBeAdded ( $provinceCode, Sylius\Component\Addressing\Model\CountryInterface $country )
provinceWithNameShouldNotBeAdded ( $provinceName, Sylius\Component\Addressing\Model\CountryInterface $country )
theCodeFieldShouldBeDisabled ( )
thisCountryShouldBeDisabled ( Sylius\Component\Addressing\Model\CountryInterface $country )
thisCountryShouldBeEnabled ( Sylius\Component\Addressing\Model\CountryInterface $country )
thisCountryShouldNotHaveTheProvince ( Sylius\Component\Addressing\Model\CountryInterface $country, $provinceName )
thisProvinceShouldStillBeNamed ( $provinceName, Sylius\Component\Addressing\Model\CountryInterface $country )

Method Details

__construct() public method

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

countryShouldAppearInTheStore() public method

public countryShouldAppearInTheStore ( Sylius\Component\Addressing\Model\CountryInterface $country )
$country Sylius\Component\Addressing\Model\CountryInterface

countryShouldHaveProvince() public method

public countryShouldHaveProvince ( Sylius\Component\Addressing\Model\CountryInterface $country, $provinceName )
$country Sylius\Component\Addressing\Model\CountryInterface

iAddIt() public method

public iAddIt ( )

iAddProvinceWithCode() public method

public iAddProvinceWithCode ( $provinceName, $provinceCode, $provinceAbbreviation = null )

iChoose() public method

public iChoose ( $countryName )

iDeleteTheProvinceOfCountry() public method

public iDeleteTheProvinceOfCountry ( $provinceName, Sylius\Component\Addressing\Model\CountryInterface $country )
$country Sylius\Component\Addressing\Model\CountryInterface

iDisableIt() public method

public iDisableIt ( )

iEnableIt() public method

public iEnableIt ( )

iNameTheProvince() public method

public iNameTheProvince ( $provinceName = null )

iRemoveProvinceName() public method

public iRemoveProvinceName ( $provinceName )

iSaveMyChanges() public method

public iSaveMyChanges ( )

iShouldBeNotifiedThatElementIsRequired() public method

iShouldBeNotifiedThatProvinceCodeMustBeUnique() public method

iShouldNotBeAbleToChoose() public method

public iShouldNotBeAbleToChoose ( $name )

iSpecifyTheProvinceCode() public method

public iSpecifyTheProvinceCode ( $provinceCode = null )

iWantToAddNewCountry() public method

iWantToCreateANewProvinceInCountry() public method

public iWantToCreateANewProvinceInCountry ( Sylius\Component\Addressing\Model\CountryInterface $country )
$country Sylius\Component\Addressing\Model\CountryInterface

iWantToEditThisCountry() public method

public iWantToEditThisCountry ( Sylius\Component\Addressing\Model\CountryInterface $country )
$country Sylius\Component\Addressing\Model\CountryInterface

provinceWithCodeShouldNotBeAdded() public method

public provinceWithCodeShouldNotBeAdded ( $provinceCode, Sylius\Component\Addressing\Model\CountryInterface $country )
$country Sylius\Component\Addressing\Model\CountryInterface

provinceWithNameShouldNotBeAdded() public method

public provinceWithNameShouldNotBeAdded ( $provinceName, Sylius\Component\Addressing\Model\CountryInterface $country )
$country Sylius\Component\Addressing\Model\CountryInterface

theCodeFieldShouldBeDisabled() public method

thisCountryShouldBeDisabled() public method

public thisCountryShouldBeDisabled ( Sylius\Component\Addressing\Model\CountryInterface $country )
$country Sylius\Component\Addressing\Model\CountryInterface

thisCountryShouldBeEnabled() public method

public thisCountryShouldBeEnabled ( Sylius\Component\Addressing\Model\CountryInterface $country )
$country Sylius\Component\Addressing\Model\CountryInterface

thisCountryShouldNotHaveTheProvince() public method

public thisCountryShouldNotHaveTheProvince ( Sylius\Component\Addressing\Model\CountryInterface $country, $provinceName )
$country Sylius\Component\Addressing\Model\CountryInterface

thisProvinceShouldStillBeNamed() public method

public thisProvinceShouldStillBeNamed ( $provinceName, Sylius\Component\Addressing\Model\CountryInterface $country )
$country Sylius\Component\Addressing\Model\CountryInterface