PHP Class Sylius\Behat\Context\Setup\ProductTaxonContext

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

Public Methods

Method Description
__construct ( Sylius\Component\Resource\Factory\FactoryInterface $productTaxonFactory, Doctrine\Common\Persistence\ObjectManager $objectManager )
itBelongsTo ( Sylius\Component\Core\Model\ProductInterface $product, Sylius\Component\Core\Model\TaxonInterface $taxon, $position = null )

Private Methods

Method Description
createProductTaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon, Sylius\Component\Core\Model\ProductInterface $product, integer | null $position = null ) : Sylius\Component\Core\Model\ProductTaxonInterface

Method Details

__construct() public method

public __construct ( Sylius\Component\Resource\Factory\FactoryInterface $productTaxonFactory, Doctrine\Common\Persistence\ObjectManager $objectManager )
$productTaxonFactory Sylius\Component\Resource\Factory\FactoryInterface
$objectManager Doctrine\Common\Persistence\ObjectManager

itBelongsTo() public method

public itBelongsTo ( Sylius\Component\Core\Model\ProductInterface $product, Sylius\Component\Core\Model\TaxonInterface $taxon, $position = null )
$product Sylius\Component\Core\Model\ProductInterface
$taxon Sylius\Component\Core\Model\TaxonInterface