aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-19 14:12:28 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-07-19 14:12:28 -0500
commit375976eb38882f42155f1f7fa2c849add8dbcf08 (patch)
treec6c27f97d7c370352ea44d324b8ebb25c4b25373 /tests
parent29322e85ff31d1a71a07846241dd809972323340 (diff)
downloadforums-375976eb38882f42155f1f7fa2c849add8dbcf08.tar
forums-375976eb38882f42155f1f7fa2c849add8dbcf08.tar.gz
forums-375976eb38882f42155f1f7fa2c849add8dbcf08.tar.bz2
forums-375976eb38882f42155f1f7fa2c849add8dbcf08.tar.xz
forums-375976eb38882f42155f1f7fa2c849add8dbcf08.zip
[ticket/11707] Twig DEFINE not working as expected
PHPBB3-11707
Diffstat (limited to 'tests')
-rw-r--r--tests/template/template_test.php2
-rw-r--r--tests/template/templates/define.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php
index 802f0c19ba..2ed0f03698 100644
--- a/tests/template/template_test.php
+++ b/tests/template/template_test.php
@@ -151,7 +151,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
array(),
array('loop' => array(array(), array(), array(), array(), array(), array(), array()), 'test' => array(array()), 'test.deep' => array(array()), 'test.deep.defines' => array(array())),
array(),
- "xyz\nabc\nabc\nbar\nbar\nabc",
+ "xyz\nabc\nabc\nbar\nbar\nabc\ntest!@#$%^&*()_-=+{}[]:;\",<.>/?",
),
array(
'define_advanced.html',
diff --git a/tests/template/templates/define.html b/tests/template/templates/define.html
index 4e6d0ee793..f0df16a8f8 100644
--- a/tests/template/templates/define.html
+++ b/tests/template/templates/define.html
@@ -7,3 +7,5 @@
{$VALUE}
<!-- UNDEFINE $VALUE -->
{$VALUE}
+<!-- DEFINE $VALUE = 'test!@#$%^&*()_-=+{}[]:;",<.>/?' -->
+{$VALUE}