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

Author: Anna Walasek ([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\ProductAttribute\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Crud\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\ProductAttribute\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver )
iAddIt ( )
iChangeItNameToIn ( $name, $language )
iDeleteThisProductAttribute ( Sylius\Component\Product\Model\ProductAttributeInterface $productAttribute )
iDoNotNameIt ( )
iRemoveItsNameFromTranslation ( $language )
iSaveMyChanges ( )
iShouldBeNotifiedThatIsRequired ( $element )
iShouldBeNotifiedThatProductAttributeWithThisCodeAlreadyExists ( )
iShouldSeeCustomersInTheList ( $amountOfProductAttributes )
iShouldSeeTheProductAttributeInTheList ( $name )
iSpecifyItsCodeAs ( $code = null )
iSpecifyItsNameAs ( $name, $language )
iWantToCreateANewTextProductAttribute ( $type )
iWantToEditThisAttribute ( Sylius\Component\Product\Model\ProductAttributeInterface $productAttribute )
iWantToSeeAllProductAttributesInStore ( )
theAttributeShouldAppearInTheStore ( $type, $name )
theAttributeWithCodeShouldNotAppearInTheStore ( $elementName, $elementValue )
theCodeFieldShouldBeDisabled ( )
theFirstProductAttributeOnTheListShouldHave ( $name )
theLastProductAttributeOnTheListShouldHave ( $name )
theTypeFieldShouldBeDisabled ( )
thereShouldStillBeOnlyOneProductAttributeWithCode ( $code )
thisProductAttributeShouldNoLongerExistInTheRegistry ( Sylius\Component\Product\Model\ProductAttributeInterface $productAttribute )

Private Methods

Méthode Description
assertFieldValidationMessage ( string $element, string $expectedMessage )

Method Details

__construct() public méthode

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

iAddIt() public méthode

public iAddIt ( )

iChangeItNameToIn() public méthode

public iChangeItNameToIn ( $name, $language )

iDeleteThisProductAttribute() public méthode

public iDeleteThisProductAttribute ( Sylius\Component\Product\Model\ProductAttributeInterface $productAttribute )
$productAttribute Sylius\Component\Product\Model\ProductAttributeInterface

iDoNotNameIt() public méthode

public iDoNotNameIt ( )

iRemoveItsNameFromTranslation() public méthode

public iRemoveItsNameFromTranslation ( $language )

iSaveMyChanges() public méthode

public iSaveMyChanges ( )

iShouldBeNotifiedThatIsRequired() public méthode

public iShouldBeNotifiedThatIsRequired ( $element )

iShouldBeNotifiedThatProductAttributeWithThisCodeAlreadyExists() public méthode

iShouldSeeCustomersInTheList() public méthode

public iShouldSeeCustomersInTheList ( $amountOfProductAttributes )

iShouldSeeTheProductAttributeInTheList() public méthode

iSpecifyItsCodeAs() public méthode

public iSpecifyItsCodeAs ( $code = null )

iSpecifyItsNameAs() public méthode

public iSpecifyItsNameAs ( $name, $language )

iWantToCreateANewTextProductAttribute() public méthode

iWantToEditThisAttribute() public méthode

public iWantToEditThisAttribute ( Sylius\Component\Product\Model\ProductAttributeInterface $productAttribute )
$productAttribute Sylius\Component\Product\Model\ProductAttributeInterface

iWantToSeeAllProductAttributesInStore() public méthode

theAttributeShouldAppearInTheStore() public méthode

public theAttributeShouldAppearInTheStore ( $type, $name )

theAttributeWithCodeShouldNotAppearInTheStore() public méthode

public theAttributeWithCodeShouldNotAppearInTheStore ( $elementName, $elementValue )

theCodeFieldShouldBeDisabled() public méthode

theFirstProductAttributeOnTheListShouldHave() public méthode

theLastProductAttributeOnTheListShouldHave() public méthode

theTypeFieldShouldBeDisabled() public méthode

thereShouldStillBeOnlyOneProductAttributeWithCode() public méthode

thisProductAttributeShouldNoLongerExistInTheRegistry() public méthode

public thisProductAttributeShouldNoLongerExistInTheRegistry ( Sylius\Component\Product\Model\ProductAttributeInterface $productAttribute )
$productAttribute Sylius\Component\Product\Model\ProductAttributeInterface