spec\Sylius\Bundle\GridBundle\Renderer\TwigGridRendererSpec::it_throws_an_exception_if_template_is_not_configured_for_given_action_type PHP Метод

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

public it_throws_an_exception_if_template_is_not_configured_for_given_action_type ( Sylius\Component\Grid\View\GridViewInterface $gridView, Sylius\Component\Grid\Definition\Action $action )
$gridView Sylius\Component\Grid\View\GridViewInterface
$action Sylius\Component\Grid\Definition\Action
    function it_throws_an_exception_if_template_is_not_configured_for_given_action_type(GridViewInterface $gridView, Action $action)
    {
        $action->getType()->willReturn('foo');
        $this->shouldThrow(new \InvalidArgumentException('Missing template for action type "foo".'))->during('renderAction', [$gridView, $action]);
    }