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

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

Public Methods

Method 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

Method Description
assertFieldValidationMessage ( string $element, string $expectedMessage )

Method Details

__construct() public method

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 method

public iAddIt ( )

iChangeItNameToIn() public method

public iChangeItNameToIn ( $name, $language )

iDeleteThisProductAttribute() public method

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

iDoNotNameIt() public method

public iDoNotNameIt ( )

iRemoveItsNameFromTranslation() public method

public iRemoveItsNameFromTranslation ( $language )

iSaveMyChanges() public method

public iSaveMyChanges ( )

iShouldBeNotifiedThatIsRequired() public method

public iShouldBeNotifiedThatIsRequired ( $element )

iShouldBeNotifiedThatProductAttributeWithThisCodeAlreadyExists() public method

iShouldSeeCustomersInTheList() public method

public iShouldSeeCustomersInTheList ( $amountOfProductAttributes )

iShouldSeeTheProductAttributeInTheList() public method

iSpecifyItsCodeAs() public method

public iSpecifyItsCodeAs ( $code = null )

iSpecifyItsNameAs() public method

public iSpecifyItsNameAs ( $name, $language )

iWantToCreateANewTextProductAttribute() public method

iWantToEditThisAttribute() public method

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

iWantToSeeAllProductAttributesInStore() public method

theAttributeShouldAppearInTheStore() public method

public theAttributeShouldAppearInTheStore ( $type, $name )

theAttributeWithCodeShouldNotAppearInTheStore() public method

public theAttributeWithCodeShouldNotAppearInTheStore ( $elementName, $elementValue )

theCodeFieldShouldBeDisabled() public method

theFirstProductAttributeOnTheListShouldHave() public method

theLastProductAttributeOnTheListShouldHave() public method

theTypeFieldShouldBeDisabled() public method

thereShouldStillBeOnlyOneProductAttributeWithCode() public method

thisProductAttributeShouldNoLongerExistInTheRegistry() public method

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