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

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

public it_uses_custom_template_if_specified ( Twig_Environment $twig, Sylius\Component\Grid\View\GridView $gridView )
$twig Twig_Environment
$gridView Sylius\Component\Grid\View\GridView
    function it_uses_custom_template_if_specified(\Twig_Environment $twig, GridView $gridView)
    {
        $twig->render('SyliusGridBundle:custom.html.twig', ['grid' => $gridView])->willReturn('<html>Grid!</html>');
        $this->render($gridView, 'SyliusGridBundle:custom.html.twig')->shouldReturn('<html>Grid!</html>');
    }