Security update to Drupal 8.4.6
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Fixtures / functions / block_with_template.test
1 --TEST--
2 "block" function with a template argument
3 --TEMPLATE--
4 {{ block('foo', 'included.twig') }}
5 {{ block('foo', included_loaded) }}
6 {{ block('foo', included_loaded_internal) }}
7 {% set output = block('foo', 'included.twig') %}
8 {{ output }}
9 {% block foo %}NOT FOO{% endblock %}
10 --TEMPLATE(included.twig)--
11 {% block foo %}FOO{% endblock %}
12 --DATA--
13 return array(
14     'included_loaded' => $twig->load('included.twig'),
15     'included_loaded_internal' => $twig->loadTemplate('included.twig'),
16 )
17 --EXPECT--
18 FOO
19 FOO
20 FOO
21 FOO
22 NOT FOO