PHP Class Sylius\Behat\Context\Setup\ProductAttributeContext

Author: Anna Walasek ([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\Component\Attribute\Repository\AttributeRepositoryInterface $productAttributeRepository, Sylius\Component\Attribute\Factory\AttributeFactoryInterface $productAttributeFactory )
theStoreHasAProductAttributeWithCode ( $type, $name, $code )
theStoreHasAProductAttributeWithPosition ( $type, $name, $position )
theStoreHasATextProductAttribute ( $type, $name )

Private Methods

Method Description
createProductAttribute ( string $type, string $name, string | null $code = null ) : Sylius\Component\Product\Model\ProductAttributeInterface
saveProductAttribute ( Sylius\Component\Product\Model\ProductAttributeInterface $productAttribute )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Attribute\Repository\AttributeRepositoryInterface $productAttributeRepository, Sylius\Component\Attribute\Factory\AttributeFactoryInterface $productAttributeFactory )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$productAttributeRepository Sylius\Component\Attribute\Repository\AttributeRepositoryInterface
$productAttributeFactory Sylius\Component\Attribute\Factory\AttributeFactoryInterface

theStoreHasAProductAttributeWithCode() public method

public theStoreHasAProductAttributeWithCode ( $type, $name, $code )

theStoreHasAProductAttributeWithPosition() public method

public theStoreHasAProductAttributeWithPosition ( $type, $name, $position )

theStoreHasATextProductAttribute() public method

public theStoreHasATextProductAttribute ( $type, $name )