PHP Class Sylius\Behat\Context\Setup\ShippingCategoryContext

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\Resource\Factory\FactoryInterface $shippingCategoryFactory, Sylius\Component\Resource\Repository\RepositoryInterface $shippingCategoryRepository, Doctrine\Common\Persistence\ObjectManager $shippingCategoryManager )
theStoreHasAndShippingCategory ( $firstShippingCategoryName, $secondShippingCategoryName = null )
theStoreHasShippingCategoryIdentifiedBy ( $shippingCategoryName, $shippingCategoryCode )

Private Methods

Method Description
createShippingCategory ( string $shippingCategoryName, string $shippingCategoryCode = null )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Resource\Factory\FactoryInterface $shippingCategoryFactory, Sylius\Component\Resource\Repository\RepositoryInterface $shippingCategoryRepository, Doctrine\Common\Persistence\ObjectManager $shippingCategoryManager )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$shippingCategoryFactory Sylius\Component\Resource\Factory\FactoryInterface
$shippingCategoryRepository Sylius\Component\Resource\Repository\RepositoryInterface
$shippingCategoryManager Doctrine\Common\Persistence\ObjectManager

theStoreHasAndShippingCategory() public method

public theStoreHasAndShippingCategory ( $firstShippingCategoryName, $secondShippingCategoryName = null )

theStoreHasShippingCategoryIdentifiedBy() public method

public theStoreHasShippingCategoryIdentifiedBy ( $shippingCategoryName, $shippingCategoryCode )