aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-09-02 15:50:34 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2013-09-02 15:50:34 -0500
commit0c5a39a3ed382bef37005e59de66120e3cf205fa (patch)
tree00a9babdb7449671af017371dd1aafdaecd2a0fb /tests/template
parent62e81d174d9d3dbd78baea36425720ed0fdaffb1 (diff)
downloadforums-0c5a39a3ed382bef37005e59de66120e3cf205fa.tar
forums-0c5a39a3ed382bef37005e59de66120e3cf205fa.tar.gz
forums-0c5a39a3ed382bef37005e59de66120e3cf205fa.tar.bz2
forums-0c5a39a3ed382bef37005e59de66120e3cf205fa.tar.xz
forums-0c5a39a3ed382bef37005e59de66120e3cf205fa.zip
[ticket/11816] Test !$DEFINITION
PHPBB3-11816
Diffstat (limited to 'tests/template')
-rw-r--r--tests/template/template_test.php2
-rw-r--r--tests/template/templates/define.html3
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php
index 0473218353..94289842df 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('test_loop' => array(array(), array(), array(), array(), array(), array(), array()), 'test' => array(array()), 'test.deep' => array(array()), 'test.deep.defines' => array(array())),
array(),
- "xyz\nabc\n\$VALUE == 'abc'\n(\$VALUE == 'abc')\nabc\nbar\nbar\nabc\ntest!@#$%^&*()_-=+{}[]:;\",<.>/?",
+ "xyz\nabc\n\$VALUE == 'abc'\n(\$VALUE == 'abc')\n(!\$DOESNT_EXIST)\nabc\nbar\nbar\nabc\ntest!@#$%^&*()_-=+{}[]:;\",<.>/?",
),
array(
'define_advanced.html',
diff --git a/tests/template/templates/define.html b/tests/template/templates/define.html
index 12842ad387..e96d14e813 100644
--- a/tests/template/templates/define.html
+++ b/tests/template/templates/define.html
@@ -10,6 +10,9 @@ $VALUE == 'abc'
<!-- IF ($VALUE == 'abc') -->
($VALUE == 'abc')
<!-- ENDIF -->
+<!-- IF (!$DOESNT_EXIST) -->
+(!$DOESNT_EXIST)
+<!-- ENDIF -->
<!-- INCLUDE define_include.html -->
{$INCLUDED_VALUE}
{$VALUE}