PHP Class Sylius\Behat\Context\Domain\ManagingPromotionCouponsContext

Author: Arkadiusz Krakowiak ([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\Promotion\Repository\PromotionCouponRepositoryInterface $couponRepository )
couponShouldNotExistInTheRegistry ( Sylius\Component\Promotion\Model\PromotionCouponInterface $coupon )
couponShouldStillExistInTheRegistry ( Sylius\Component\Promotion\Model\PromotionCouponInterface $coupon )
iDeleteCoupon ( Sylius\Component\Promotion\Model\PromotionCouponInterface $coupon, Sylius\Component\Core\Model\PromotionInterface $promotion )
iShouldBeNotifiedOfFailure ( )
iTryToDeleteCoupon ( Sylius\Component\Promotion\Model\PromotionCouponInterface $coupon, Sylius\Component\Core\Model\PromotionInterface $promotion )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Promotion\Repository\PromotionCouponRepositoryInterface $couponRepository )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$couponRepository Sylius\Component\Promotion\Repository\PromotionCouponRepositoryInterface

couponShouldNotExistInTheRegistry() public method

public couponShouldNotExistInTheRegistry ( Sylius\Component\Promotion\Model\PromotionCouponInterface $coupon )
$coupon Sylius\Component\Promotion\Model\PromotionCouponInterface

couponShouldStillExistInTheRegistry() public method

public couponShouldStillExistInTheRegistry ( Sylius\Component\Promotion\Model\PromotionCouponInterface $coupon )
$coupon Sylius\Component\Promotion\Model\PromotionCouponInterface

iDeleteCoupon() public method

public iDeleteCoupon ( Sylius\Component\Promotion\Model\PromotionCouponInterface $coupon, Sylius\Component\Core\Model\PromotionInterface $promotion )
$coupon Sylius\Component\Promotion\Model\PromotionCouponInterface
$promotion Sylius\Component\Core\Model\PromotionInterface

iShouldBeNotifiedOfFailure() public method

iTryToDeleteCoupon() public method

public iTryToDeleteCoupon ( Sylius\Component\Promotion\Model\PromotionCouponInterface $coupon, Sylius\Component\Core\Model\PromotionInterface $promotion )
$coupon Sylius\Component\Promotion\Model\PromotionCouponInterface
$promotion Sylius\Component\Core\Model\PromotionInterface