spec\Namshi\Notificator\Notification\Handler\RabbitMQSpec::it_handles_rabbitmq_notification PHP Метод

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

public it_handles_rabbitmq_notification ( PhpAmqpLib\Channel\AMQPChannel $publisher, Namshi\Notificator\Notification\RabbitMQ\RabbitMQNotification $notification )
$publisher PhpAmqpLib\Channel\AMQPChannel
$notification Namshi\Notificator\Notification\RabbitMQ\RabbitMQNotification
    function it_handles_rabbitmq_notification($publisher, $notification)
    {
        $publisher->basic_publish(Argument::any())->willReturn(Argument::any())->shouldBeCalled();
        $notification->getMessage()->willReturn('message')->shouldBeCalled();
        $this->handle($notification);
    }