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

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

Public Methods

Method Description
__construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Behat\Page\Admin\Taxon\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Taxon\CreateForParentPageInterface $createForParentPage, Sylius\Behat\Page\Admin\Taxon\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver )
iAddIt ( )
iAttachImageWithACode ( $path, $code )
iAttachImageWithoutACode ( $path )
iChangeItsDescriptionToIn ( $description, $language )
iChangeItsImageToPathForTheCode ( $path, $code )
iChangeItsParentTaxonTo ( Sylius\Component\Core\Model\TaxonInterface $taxon )
iChooseAsAParentTaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
iDeleteTaxonNamed ( $name )
iDescribeItAs ( $description, $language )
iDoNotSpecifyItsCode ( )
iDoNotSpecifyItsName ( )
iEnableSlugModification ( $language = 'en_US' )
iMoveDownTaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
iNameItIn ( $name, $language )
iRemoveAnImageWithACode ( $code )
iRemoveTheFirstImage ( )
iRenameItIn ( $name, $language )
iSaveMyChanges ( )
iSetItsSlugToIn ( $slug = null, $language = 'en_US' )
iShouldBeNotifiedThatAnImageCodeIsRequired ( )
iShouldBeNotifiedThatIsRequired ( $element )
iShouldBeNotifiedThatTaxonSlugMustBeUnique ( )
iShouldBeNotifiedThatTaxonWithThisCodeAlreadyExists ( )
iShouldBeNotifiedThatTheFirstImageShouldHaveAnUniqueCode ( $imageNumber )
iShouldBeNotifiedThatTheImageWithThisCodeAlreadyExists ( )
iShouldSeeTaxonsInTheList ( $number )
iShouldSeeTheTaxonNamedInTheList ( $name )
iSpecifyItsCodeAs ( $code )
iWantToCreateANewTaxon ( )
iWantToCreateANewTaxonForParent ( Sylius\Component\Core\Model\TaxonInterface $taxon )
iWantToModifyATaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
iWantToMoveUpTaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
itShouldNotBelongToAnyOtherTaxon ( )
productSlugShouldBe ( Sylius\Component\Core\Model\TaxonInterface $taxon, $slug )
taxonNamedShouldNotBeAdded ( $name )
theCodeFieldShouldBeDisabled ( )
theFirstTaxonOnTheListShouldBe ( Sylius\Component\Core\Model\TaxonInterface $taxon )
theImageCodeFieldShouldBeDisabled ( )
theSlugFieldShouldNotBeEditable ( $language = 'en_US' )
theTaxonShouldAppearInTheRegistry ( Sylius\Component\Core\Model\TaxonInterface $taxon )
thereShouldStillBeOnlyOneImageInThisTaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
thereShouldStillBeOnlyOneTaxonWithCode ( $code )
theyShouldHaveOrderLikeAnd ( $taxonsNames )
thisTaxonElementShouldBe ( $element, $value )
thisTaxonElementShouldHaveSlugIn ( $value, $language = null )
thisTaxonShouldBelongsTo ( Sylius\Component\Core\Model\TaxonInterface $taxon )
thisTaxonShouldHaveAnImageWithCode ( $code )
thisTaxonShouldNotHaveAnImageWithCode ( $code )
thisTaxonShouldNotHaveImages ( Sylius\Component\Core\Model\TaxonInterface $taxon )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Behat\Page\Admin\Taxon\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Taxon\CreateForParentPageInterface $createForParentPage, Sylius\Behat\Page\Admin\Taxon\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$createPage Sylius\Behat\Page\Admin\Taxon\CreatePageInterface
$createForParentPage Sylius\Behat\Page\Admin\Taxon\CreateForParentPageInterface
$updatePage Sylius\Behat\Page\Admin\Taxon\UpdatePageInterface
$currentPageResolver Sylius\Behat\Service\Resolver\CurrentPageResolverInterface

iAddIt() public method

public iAddIt ( )

iAttachImageWithACode() public method

public iAttachImageWithACode ( $path, $code )

iAttachImageWithoutACode() public method

public iAttachImageWithoutACode ( $path )

iChangeItsDescriptionToIn() public method

public iChangeItsDescriptionToIn ( $description, $language )

iChangeItsImageToPathForTheCode() public method

public iChangeItsImageToPathForTheCode ( $path, $code )

iChangeItsParentTaxonTo() public method

public iChangeItsParentTaxonTo ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

iChooseAsAParentTaxon() public method

public iChooseAsAParentTaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

iDeleteTaxonNamed() public method

public iDeleteTaxonNamed ( $name )

iDescribeItAs() public method

public iDescribeItAs ( $description, $language )

iDoNotSpecifyItsCode() public method

iDoNotSpecifyItsName() public method

iEnableSlugModification() public method

public iEnableSlugModification ( $language = 'en_US' )

iMoveDownTaxon() public method

public iMoveDownTaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

iNameItIn() public method

public iNameItIn ( $name, $language )

iRemoveAnImageWithACode() public method

public iRemoveAnImageWithACode ( $code )

iRemoveTheFirstImage() public method

iRenameItIn() public method

public iRenameItIn ( $name, $language )

iSaveMyChanges() public method

public iSaveMyChanges ( )

iSetItsSlugToIn() public method

public iSetItsSlugToIn ( $slug = null, $language = 'en_US' )

iShouldBeNotifiedThatAnImageCodeIsRequired() public method

iShouldBeNotifiedThatIsRequired() public method

public iShouldBeNotifiedThatIsRequired ( $element )

iShouldBeNotifiedThatTaxonSlugMustBeUnique() public method

iShouldBeNotifiedThatTaxonWithThisCodeAlreadyExists() public method

iShouldBeNotifiedThatTheFirstImageShouldHaveAnUniqueCode() public method

iShouldBeNotifiedThatTheImageWithThisCodeAlreadyExists() public method

iShouldSeeTaxonsInTheList() public method

public iShouldSeeTaxonsInTheList ( $number )

iShouldSeeTheTaxonNamedInTheList() public method

iSpecifyItsCodeAs() public method

public iSpecifyItsCodeAs ( $code )

iWantToCreateANewTaxon() public method

iWantToCreateANewTaxonForParent() public method

public iWantToCreateANewTaxonForParent ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

iWantToModifyATaxon() public method

public iWantToModifyATaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

iWantToMoveUpTaxon() public method

public iWantToMoveUpTaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

itShouldNotBelongToAnyOtherTaxon() public method

productSlugShouldBe() public method

public productSlugShouldBe ( Sylius\Component\Core\Model\TaxonInterface $taxon, $slug )
$taxon Sylius\Component\Core\Model\TaxonInterface

taxonNamedShouldNotBeAdded() public method

public taxonNamedShouldNotBeAdded ( $name )

theCodeFieldShouldBeDisabled() public method

theFirstTaxonOnTheListShouldBe() public method

public theFirstTaxonOnTheListShouldBe ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

theImageCodeFieldShouldBeDisabled() public method

theSlugFieldShouldNotBeEditable() public method

public theSlugFieldShouldNotBeEditable ( $language = 'en_US' )

theTaxonShouldAppearInTheRegistry() public method

public theTaxonShouldAppearInTheRegistry ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

thereShouldStillBeOnlyOneImageInThisTaxon() public method

public thereShouldStillBeOnlyOneImageInThisTaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

thereShouldStillBeOnlyOneTaxonWithCode() public method

theyShouldHaveOrderLikeAnd() public method

public theyShouldHaveOrderLikeAnd ( $taxonsNames )

thisTaxonElementShouldBe() public method

public thisTaxonElementShouldBe ( $element, $value )

thisTaxonElementShouldHaveSlugIn() public method

public thisTaxonElementShouldHaveSlugIn ( $value, $language = null )

thisTaxonShouldBelongsTo() public method

public thisTaxonShouldBelongsTo ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

thisTaxonShouldHaveAnImageWithCode() public method

thisTaxonShouldNotHaveAnImageWithCode() public method

thisTaxonShouldNotHaveImages() public method

public thisTaxonShouldNotHaveImages ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface