PHP Class Sylius\Behat\Context\Setup\TaxonomyContext

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

Public Methods

Method Description
__construct ( Sylius\Component\Resource\Repository\RepositoryInterface $taxonRepository, Sylius\Component\Resource\Factory\FactoryInterface $taxonFactory, Sylius\Component\Resource\Factory\FactoryInterface $taxonTranslationFactory, Sylius\Component\Resource\Factory\FactoryInterface $taxonImageFactory, Doctrine\Common\Persistence\ObjectManager $objectManager, Sylius\Component\Core\Uploader\ImageUploaderInterface $imageUploader, Sylius\Component\Taxonomy\Generator\TaxonSlugGeneratorInterface $taxonSlugGenerator, array $minkParameters )
storeClassifiesItsProductsAs ( $taxonsNames )
theStoreHasTaxonomyNamedInAndIn ( $firstName, $firstLocale, $secondName, $secondLocale )
theTaxonHasAnImageWithACode ( Sylius\Component\Core\Model\TaxonInterface $taxon, $imagePath, $imageCode )

Private Methods

Method Description
createTaxon ( string $name ) : Sylius\Component\Core\Model\TaxonInterface
createTaxonInManyLanguages ( array $names ) : Sylius\Component\Core\Model\TaxonInterface
getParameter ( string $name ) : Behat\Mink\Element\NodeElement

Method Details

__construct() public method

public __construct ( Sylius\Component\Resource\Repository\RepositoryInterface $taxonRepository, Sylius\Component\Resource\Factory\FactoryInterface $taxonFactory, Sylius\Component\Resource\Factory\FactoryInterface $taxonTranslationFactory, Sylius\Component\Resource\Factory\FactoryInterface $taxonImageFactory, Doctrine\Common\Persistence\ObjectManager $objectManager, Sylius\Component\Core\Uploader\ImageUploaderInterface $imageUploader, Sylius\Component\Taxonomy\Generator\TaxonSlugGeneratorInterface $taxonSlugGenerator, array $minkParameters )
$taxonRepository Sylius\Component\Resource\Repository\RepositoryInterface
$taxonFactory Sylius\Component\Resource\Factory\FactoryInterface
$taxonTranslationFactory Sylius\Component\Resource\Factory\FactoryInterface
$taxonImageFactory Sylius\Component\Resource\Factory\FactoryInterface
$objectManager Doctrine\Common\Persistence\ObjectManager
$imageUploader Sylius\Component\Core\Uploader\ImageUploaderInterface
$taxonSlugGenerator Sylius\Component\Taxonomy\Generator\TaxonSlugGeneratorInterface
$minkParameters array

storeClassifiesItsProductsAs() public method

public storeClassifiesItsProductsAs ( $taxonsNames )

theStoreHasTaxonomyNamedInAndIn() public method

public theStoreHasTaxonomyNamedInAndIn ( $firstName, $firstLocale, $secondName, $secondLocale )

theTaxonHasAnImageWithACode() public method

public theTaxonHasAnImageWithACode ( Sylius\Component\Core\Model\TaxonInterface $taxon, $imagePath, $imageCode )
$taxon Sylius\Component\Core\Model\TaxonInterface