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 / name.test
1 --TEST--
2 "name" autoescape strategy
3 --TEMPLATE--
4 {{ br -}}
5 {{ include('index.js.twig') -}}
6 {{ include('index.html.twig') -}}
7 {{ include('index.txt.twig') -}}
8 --TEMPLATE(index.js.twig)--
9 {{ br -}}
10 --TEMPLATE(index.html.twig)--
11 {{ br -}}
12 --TEMPLATE(index.txt.twig)--
13 {{ br -}}
14 --DATA--
15 return array('br' => '<br />')
16 --CONFIG--
17 return array('autoescape' => 'name')
18 --EXPECT--
19 &lt;br /&gt;
20 \u003Cbr\u0020\/\u003E
21 &lt;br /&gt;
22 <br />