Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Fixtures / autoescape / block.test
1 --TEST--
2 blocks and autoescape
3 --TEMPLATE--
4 {{ include('unrelated.txt.twig') -}}
5 {{ include('template.html.twig') -}}
6 --TEMPLATE(unrelated.txt.twig)--
7 {% block content %}{% endblock %}
8 --TEMPLATE(template.html.twig)--
9 {% extends 'parent.html.twig' %}
10 {% block content %}
11 {{ br -}}
12 {% endblock %}
13 --TEMPLATE(parent.html.twig)--
14 {% set _content = block('content')|raw %}
15 {{ _content|raw }}
16 --DATA--
17 return array('br' => '<br />')
18 --CONFIG--
19 return array('autoescape' => 'name')
20 --EXPECT--
21 &lt;br /&gt;