public it_handles_emailvision_notification ( Namshi\Notificator\Notification\Email\Emailvision\EmailvisionNotification $notification, Namshi\Notificator\Notification\Email\Emailvision\ClientInterface $client ) | ||
$notification | Namshi\Notificator\Notification\Email\Emailvision\EmailvisionNotification | |
$client | Namshi\Notificator\Notification\Email\Emailvision\ClientInterface |
function it_handles_emailvision_notification($notification, $client)
{
$notification->getEmailTemplate()->willReturn('template')->shouldBeCalled();
$notification->getRecipientAddresses()->willReturn(['recipient'])->shouldBeCalled();
$notification->getParameters()->willReturn(['s', 'i'])->shouldBeCalled();
$this->handle($notification)->shouldBe(true);
$client->sendEmail('template', 'recipient', ['s', 'i'])->shouldBeCalled();
}