spec\Namshi\Notificator\Notification\Handler\SwiftMailerSpec::it_handles_emailvision_notification PHP Метод

it_handles_emailvision_notification() публичный Метод

public it_handles_emailvision_notification ( Namshi\Notificator\Notification\Email\SwiftMailer\SwiftMailerNotification $notification, Swift_Message $message, Swift_Mailer $mailer )
$notification Namshi\Notificator\Notification\Email\SwiftMailer\SwiftMailerNotification
$message Swift_Message
$mailer Swift_Mailer
    function it_handles_emailvision_notification($notification, $message, $mailer)
    {
        $notification->getMessage()->willReturn($message)->shouldBeCalled();
        $this->handle($notification)->shouldBe(true);
        $mailer->send($message)->shouldBeCalled();
    }