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

Author: Łukasz Chruściel ([email protected])
Inheritance: implements Behat\Behat\Context\Context
Show file Open project: sylius/sylius

Public Methods

Method Description
__construct ( Sylius\Behat\Page\Admin\Crud\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\TaxRate\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\TaxRate\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver )
iAddIt ( )
iChooseOption ( )
iDefineItForTheZone ( $zoneName )
iDeletedTaxRate ( Sylius\Component\Core\Model\TaxRateInterface $taxRate )
iDoNotSpecifyItsZone ( )
iDoNotSpecifyRelatedTaxCategory ( )
iMakeItApplicableForTheTaxCategory ( $taxCategoryName )
iNameIt ( $name = null )
iSaveMyChanges ( )
iShouldBeNotifiedThatElementHasToBeSelected ( $element )
iShouldBeNotifiedThatIsRequired ( $element )
iShouldBeNotifiedThatTaxRateWithThisCodeAlreadyExists ( )
iSpecifyItsAmountAs ( $amount = null )
iSpecifyItsCodeAs ( $code = null )
iWantToCreateNewTaxRate ( )
iWantToModifyTaxRate ( Sylius\Component\Core\Model\TaxRateInterface $taxRate )
iWantToUseTheDefaultTaxCalculator ( )
taxRateWithElementValueShouldNotBeAdded ( $element, $name )
theCodeFieldShouldBeDisabled ( )
theTaxRateShouldAppearInTheRegistry ( $taxRateName )
thereShouldStillBeOnlyOneTaxRateWith ( $element, $code )
thisTaxRateAmountShouldBe ( Sylius\Component\Core\Model\TaxRateInterface $taxRate, $taxRateAmount )
thisTaxRateNameShouldBe ( Sylius\Component\Core\Model\TaxRateInterface $taxRate, $taxRateName )
thisTaxRateShouldBeApplicableForTaxCategory ( Sylius\Component\Core\Model\TaxRateInterface $taxRate, $taxCategory )
thisTaxRateShouldBeApplicableInZone ( Sylius\Component\Core\Model\TaxRateInterface $taxRate, $zone )
thisTaxRateShouldNoLongerExistInTheRegistry ( Sylius\Component\Core\Model\TaxRateInterface $taxRate )

Private Methods

Method Description
assertFieldValidationMessage ( string $element, string $expectedMessage )
assertFieldValue ( Sylius\Component\Core\Model\TaxRateInterface $taxRate, string $element, string $taxRateElement )

Method Details

__construct() public method

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

iAddIt() public method

public iAddIt ( )

iChooseOption() public method

public iChooseOption ( )

iDefineItForTheZone() public method

public iDefineItForTheZone ( $zoneName )

iDeletedTaxRate() public method

public iDeletedTaxRate ( Sylius\Component\Core\Model\TaxRateInterface $taxRate )
$taxRate Sylius\Component\Core\Model\TaxRateInterface

iDoNotSpecifyItsZone() public method

iDoNotSpecifyRelatedTaxCategory() public method

iMakeItApplicableForTheTaxCategory() public method

public iMakeItApplicableForTheTaxCategory ( $taxCategoryName )

iNameIt() public method

public iNameIt ( $name = null )

iSaveMyChanges() public method

public iSaveMyChanges ( )

iShouldBeNotifiedThatElementHasToBeSelected() public method

iShouldBeNotifiedThatIsRequired() public method

public iShouldBeNotifiedThatIsRequired ( $element )

iShouldBeNotifiedThatTaxRateWithThisCodeAlreadyExists() public method

iSpecifyItsAmountAs() public method

public iSpecifyItsAmountAs ( $amount = null )

iSpecifyItsCodeAs() public method

public iSpecifyItsCodeAs ( $code = null )

iWantToCreateNewTaxRate() public method

iWantToModifyTaxRate() public method

public iWantToModifyTaxRate ( Sylius\Component\Core\Model\TaxRateInterface $taxRate )
$taxRate Sylius\Component\Core\Model\TaxRateInterface

iWantToUseTheDefaultTaxCalculator() public method

taxRateWithElementValueShouldNotBeAdded() public method

public taxRateWithElementValueShouldNotBeAdded ( $element, $name )

theCodeFieldShouldBeDisabled() public method

theTaxRateShouldAppearInTheRegistry() public method

public theTaxRateShouldAppearInTheRegistry ( $taxRateName )

thereShouldStillBeOnlyOneTaxRateWith() public method

public thereShouldStillBeOnlyOneTaxRateWith ( $element, $code )

thisTaxRateAmountShouldBe() public method

public thisTaxRateAmountShouldBe ( Sylius\Component\Core\Model\TaxRateInterface $taxRate, $taxRateAmount )
$taxRate Sylius\Component\Core\Model\TaxRateInterface

thisTaxRateNameShouldBe() public method

public thisTaxRateNameShouldBe ( Sylius\Component\Core\Model\TaxRateInterface $taxRate, $taxRateName )
$taxRate Sylius\Component\Core\Model\TaxRateInterface

thisTaxRateShouldBeApplicableForTaxCategory() public method

public thisTaxRateShouldBeApplicableForTaxCategory ( Sylius\Component\Core\Model\TaxRateInterface $taxRate, $taxCategory )
$taxRate Sylius\Component\Core\Model\TaxRateInterface

thisTaxRateShouldBeApplicableInZone() public method

public thisTaxRateShouldBeApplicableInZone ( Sylius\Component\Core\Model\TaxRateInterface $taxRate, $zone )
$taxRate Sylius\Component\Core\Model\TaxRateInterface

thisTaxRateShouldNoLongerExistInTheRegistry() public method

public thisTaxRateShouldNoLongerExistInTheRegistry ( Sylius\Component\Core\Model\TaxRateInterface $taxRate )
$taxRate Sylius\Component\Core\Model\TaxRateInterface