spec\Sylius\Bundle\CoreBundle\EventListener\CustomerReviewsDeleteListenerSpec::it_throws_exception_if_event_subject_is_not_customer_object PHP Метод

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

public it_throws_exception_if_event_subject_is_not_customer_object ( Symfony\Component\EventDispatcher\GenericEvent $event )
$event Symfony\Component\EventDispatcher\GenericEvent
    function it_throws_exception_if_event_subject_is_not_customer_object(GenericEvent $event)
    {
        $event->getSubject()->willReturn('badObject')->shouldBeCalled();
        $this->shouldThrow(new UnexpectedTypeException('badObject', ReviewerInterface::class))->during('removeCustomerReviews', [$event]);
    }