PHP Class spec\Sylius\Bundle\CoreBundle\EventListener\UserMailerListenerSpec

Author: Manuel Gonzalez ([email protected])
Author: Grzegorz Sadowski ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
Show file Open project: sylius/sylius

Public Methods

Method Description
it_does_not_send_the_email_confirmation_if_the_customer_user_is_null ( Sylius\Component\Mailer\Sender\SenderInterface $emailSender, Symfony\Component\EventDispatcher\GenericEvent $event, Sylius\Component\Core\Model\CustomerInterface $customer )
it_does_not_send_the_email_registration_if_the_customer_user_does_not_have_email ( Sylius\Component\Mailer\Sender\SenderInterface $emailSender, Symfony\Component\EventDispatcher\GenericEvent $event, Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\ShopUserInterface $user )
it_is_a_user_mailer_listener ( )
it_is_instializable ( )
it_sends_an_email_registration_successfully ( Sylius\Component\Mailer\Sender\SenderInterface $emailSender, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Symfony\Component\EventDispatcher\GenericEvent $event, Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\ShopUserInterface $user, Sylius\Component\Channel\Model\ChannelInterface $channel )
it_throws_an_exception_if_event_subject_is_not_a_customer_instance_sending_confirmation ( Symfony\Component\EventDispatcher\GenericEvent $event, stdClass $customer )
let ( Sylius\Component\Mailer\Sender\SenderInterface $emailSender, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext )

Method Details

it_does_not_send_the_email_confirmation_if_the_customer_user_is_null() public method

public it_does_not_send_the_email_confirmation_if_the_customer_user_is_null ( Sylius\Component\Mailer\Sender\SenderInterface $emailSender, Symfony\Component\EventDispatcher\GenericEvent $event, Sylius\Component\Core\Model\CustomerInterface $customer )
$emailSender Sylius\Component\Mailer\Sender\SenderInterface
$event Symfony\Component\EventDispatcher\GenericEvent
$customer Sylius\Component\Core\Model\CustomerInterface

it_does_not_send_the_email_registration_if_the_customer_user_does_not_have_email() public method

public it_does_not_send_the_email_registration_if_the_customer_user_does_not_have_email ( Sylius\Component\Mailer\Sender\SenderInterface $emailSender, Symfony\Component\EventDispatcher\GenericEvent $event, Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\ShopUserInterface $user )
$emailSender Sylius\Component\Mailer\Sender\SenderInterface
$event Symfony\Component\EventDispatcher\GenericEvent
$customer Sylius\Component\Core\Model\CustomerInterface
$user Sylius\Component\Core\Model\ShopUserInterface

it_is_a_user_mailer_listener() public method

it_is_instializable() public method

public it_is_instializable ( )

it_sends_an_email_registration_successfully() public method

public it_sends_an_email_registration_successfully ( Sylius\Component\Mailer\Sender\SenderInterface $emailSender, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Symfony\Component\EventDispatcher\GenericEvent $event, Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\ShopUserInterface $user, Sylius\Component\Channel\Model\ChannelInterface $channel )
$emailSender Sylius\Component\Mailer\Sender\SenderInterface
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface
$event Symfony\Component\EventDispatcher\GenericEvent
$customer Sylius\Component\Core\Model\CustomerInterface
$user Sylius\Component\Core\Model\ShopUserInterface
$channel Sylius\Component\Channel\Model\ChannelInterface

it_throws_an_exception_if_event_subject_is_not_a_customer_instance_sending_confirmation() public method

public it_throws_an_exception_if_event_subject_is_not_a_customer_instance_sending_confirmation ( Symfony\Component\EventDispatcher\GenericEvent $event, stdClass $customer )
$event Symfony\Component\EventDispatcher\GenericEvent
$customer stdClass

let() public method

public let ( Sylius\Component\Mailer\Sender\SenderInterface $emailSender, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext )
$emailSender Sylius\Component\Mailer\Sender\SenderInterface
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface