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

Author: Grzegorz Sadowski ([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\ProductOption\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\ProductOption\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver )
iAddIt ( )
iAddTheOptionValueWithCodeAndValue ( $value, $code )
iBrowseProductOptions ( )
iDeleteTheOptionValueOfThisProductOption ( $optionValue )
iDoNotAddAnOptionValue ( )
iDoNotNameIt ( )
iNameItInLanguage ( $name, $language )
iRenameItToInLanguage ( $name = null, $language )
iSaveMyChanges ( )
iShouldBeNotifiedThatAtLeastTwoOptionValuesAreRequired ( )
iShouldBeNotifiedThatElementIsRequired ( $element )
iShouldBeNotifiedThatProductOptionWithThisCodeAlreadyExists ( )
iShouldSeeProductOptionsInTheList ( $amount )
iSpecifyItsCodeAs ( $code = null )
iWantToCreateANewProductOption ( )
iWantToModifyAProductOption ( Sylius\Component\Product\Model\ProductOptionInterface $productOption )
theCodeFieldShouldBeDisabled ( )
theProductOptionShouldAppearInTheRegistry ( $productOptionName )
theProductOptionWithElementValueShouldNotBeAdded ( $element, $value )
thereShouldStillBeOnlyOneProductOptionWith ( $element, $value )
thisProductOptionNameShouldStillBe ( Sylius\Component\Product\Model\ProductOptionInterface $productOption, $productOptionName )
thisProductOptionShouldHaveTheOptionValue ( Sylius\Component\Product\Model\ProductOptionInterface $productOption, $optionValue )
thisProductOptionShouldNotHaveTheOptionValue ( Sylius\Component\Product\Model\ProductOptionInterface $productOption, $optionValue )

Method Details

__construct() public method

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

iAddIt() public method

public iAddIt ( )

iAddTheOptionValueWithCodeAndValue() public method

public iAddTheOptionValueWithCodeAndValue ( $value, $code )

iBrowseProductOptions() public method

iDeleteTheOptionValueOfThisProductOption() public method

iDoNotAddAnOptionValue() public method

iDoNotNameIt() public method

public iDoNotNameIt ( )

iNameItInLanguage() public method

public iNameItInLanguage ( $name, $language )

iRenameItToInLanguage() public method

public iRenameItToInLanguage ( $name = null, $language )

iSaveMyChanges() public method

public iSaveMyChanges ( )

iShouldBeNotifiedThatAtLeastTwoOptionValuesAreRequired() public method

iShouldBeNotifiedThatElementIsRequired() public method

iShouldBeNotifiedThatProductOptionWithThisCodeAlreadyExists() public method

iShouldSeeProductOptionsInTheList() public method

iSpecifyItsCodeAs() public method

public iSpecifyItsCodeAs ( $code = null )

iWantToCreateANewProductOption() public method

iWantToModifyAProductOption() public method

public iWantToModifyAProductOption ( Sylius\Component\Product\Model\ProductOptionInterface $productOption )
$productOption Sylius\Component\Product\Model\ProductOptionInterface

theCodeFieldShouldBeDisabled() public method

theProductOptionShouldAppearInTheRegistry() public method

public theProductOptionShouldAppearInTheRegistry ( $productOptionName )

theProductOptionWithElementValueShouldNotBeAdded() public method

thereShouldStillBeOnlyOneProductOptionWith() public method

public thereShouldStillBeOnlyOneProductOptionWith ( $element, $value )

thisProductOptionNameShouldStillBe() public method

public thisProductOptionNameShouldStillBe ( Sylius\Component\Product\Model\ProductOptionInterface $productOption, $productOptionName )
$productOption Sylius\Component\Product\Model\ProductOptionInterface

thisProductOptionShouldHaveTheOptionValue() public method

public thisProductOptionShouldHaveTheOptionValue ( Sylius\Component\Product\Model\ProductOptionInterface $productOption, $optionValue )
$productOption Sylius\Component\Product\Model\ProductOptionInterface

thisProductOptionShouldNotHaveTheOptionValue() public method

public thisProductOptionShouldNotHaveTheOptionValue ( Sylius\Component\Product\Model\ProductOptionInterface $productOption, $optionValue )
$productOption Sylius\Component\Product\Model\ProductOptionInterface