PHP Class Sylius\Behat\Context\Ui\EmailContext

Author: Jan Góralski ([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\Core\Test\Services\EmailCheckerInterface $emailChecker )
aWelcomingEmailShouldHaveBeenSentTo ( $recipient )
anEmailShouldBeSentTo ( $recipient )
anEmailWithOrderConfirmationShouldBeSentTo ( Sylius\Component\Core\Model\OrderInterface $order )
anEmailWithShipmentDetailsOfOrderShouldBeSentTo ( Sylius\Component\Core\Model\OrderInterface $order, $recipient )
numberOfEmailsShouldBeSentTo ( $count, $recipient )

Private Methods

Method Description
assertEmailContainsMessageTo ( string $message, string $recipient )
getShippingMethodName ( Sylius\Component\Core\Model\OrderInterface $order ) : string

Method Details

__construct() public method

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Core\Test\Services\EmailCheckerInterface $emailChecker )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$emailChecker Sylius\Component\Core\Test\Services\EmailCheckerInterface

aWelcomingEmailShouldHaveBeenSentTo() public method

public aWelcomingEmailShouldHaveBeenSentTo ( $recipient )

anEmailShouldBeSentTo() public method

public anEmailShouldBeSentTo ( $recipient )

anEmailWithOrderConfirmationShouldBeSentTo() public method

public anEmailWithOrderConfirmationShouldBeSentTo ( Sylius\Component\Core\Model\OrderInterface $order )
$order Sylius\Component\Core\Model\OrderInterface

anEmailWithShipmentDetailsOfOrderShouldBeSentTo() public method

public anEmailWithShipmentDetailsOfOrderShouldBeSentTo ( Sylius\Component\Core\Model\OrderInterface $order, $recipient )
$order Sylius\Component\Core\Model\OrderInterface

numberOfEmailsShouldBeSentTo() public method

public numberOfEmailsShouldBeSentTo ( $count, $recipient )