aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-11-04 12:15:02 -0600
committerNathan Guse <nathaniel.guse@gmail.com>2013-11-04 12:15:02 -0600
commitc609f25bae6aee2b7fab8dfeb8b3a58e2c2f396f (patch)
treec1000609c2b18cd78266742299e735759f136071 /tests
parent27e54f94732357548a70496ade558cf9f907f3f7 (diff)
downloadforums-c609f25bae6aee2b7fab8dfeb8b3a58e2c2f396f.tar
forums-c609f25bae6aee2b7fab8dfeb8b3a58e2c2f396f.tar.gz
forums-c609f25bae6aee2b7fab8dfeb8b3a58e2c2f396f.tar.bz2
forums-c609f25bae6aee2b7fab8dfeb8b3a58e2c2f396f.tar.xz
forums-c609f25bae6aee2b7fab8dfeb8b3a58e2c2f396f.zip
[ticket/11943] Add test for DEFINE $VAR = false
PHPBB3-11943
Diffstat (limited to 'tests')
-rw-r--r--tests/template/template_test.php2
-rw-r--r--tests/template/templates/define.html6
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php
index 39eb08ab79..0ff469779d 100644
--- a/tests/template/template_test.php
+++ b/tests/template/template_test.php
@@ -158,7 +158,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')\n((\$VALUE == 'abc'))\n!\$DOESNT_EXIST\n(!\$DOESNT_EXIST)\nabc\nbar\nbar\nabc\ntest!@#$%^&*()_-=+{}[]:;\",<.>/?[]|foobar|",
+ "xyz\nabc\n\$VALUE == 'abc'\n(\$VALUE == 'abc')\n((\$VALUE == 'abc'))\n!\$DOESNT_EXIST\n(!\$DOESNT_EXIST)\nabc\nbar\nbar\nabc\ntest!@#$%^&*()_-=+{}[]:;\",<.>/?[]|foobar|false",
),
array(
'define_advanced.html',
diff --git a/tests/template/templates/define.html b/tests/template/templates/define.html
index e7ce7f7def..276d2ebb99 100644
--- a/tests/template/templates/define.html
+++ b/tests/template/templates/define.html
@@ -29,3 +29,9 @@ $VALUE == 'abc'
<!-- DEFINE $VALUE = '' -->
[{$VALUE}]
<!-- DEFINE $TEST -->foobar<!-- ENDDEFINE -->|{$TEST}|
+<!-- DEFINE $VAR = false -->
+<!-- IF $VAR -->
+true
+<!-- ELSE -->
+false
+<!-- ENDIF -->