aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-07-27 20:02:03 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2013-07-27 20:02:03 -0500
commitd5c56c5d503ea4b12852866e2d3b956e92a92aea (patch)
tree27d3e078443bfd9bb1d317fc2771822959944af8 /tests/template
parent26dac64d45944dce14b33a9c82e531f01f9a623f (diff)
downloadforums-d5c56c5d503ea4b12852866e2d3b956e92a92aea.tar
forums-d5c56c5d503ea4b12852866e2d3b956e92a92aea.tar.gz
forums-d5c56c5d503ea4b12852866e2d3b956e92a92aea.tar.bz2
forums-d5c56c5d503ea4b12852866e2d3b956e92a92aea.tar.xz
forums-d5c56c5d503ea4b12852866e2d3b956e92a92aea.zip
[ticket/11724] Support "ELSE IF" and "ELSEIF" in the same way
PHPBB3-11724
Diffstat (limited to 'tests/template')
-rw-r--r--tests/template/template_test.php7
-rw-r--r--tests/template/templates/if.html2
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php
index dd9ba21c26..2a40107d90 100644
--- a/tests/template/template_test.php
+++ b/tests/template/template_test.php
@@ -64,6 +64,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
),
array(
'if.html',
+ array('S_OTHER_OTHER_VALUE' => true),
+ array(),
+ array(),
+ '|S_OTHER_OTHER_VALUE|!false',
+ ),
+ array(
+ 'if.html',
array('S_VALUE' => false, 'S_OTHER_VALUE' => true),
array(),
array(),
diff --git a/tests/template/templates/if.html b/tests/template/templates/if.html
index c010aff7fa..f6ab6e575a 100644
--- a/tests/template/templates/if.html
+++ b/tests/template/templates/if.html
@@ -2,6 +2,8 @@
1
<!-- ELSEIF S_OTHER_VALUE -->
2
+<!-- ELSE IF S_OTHER_OTHER_VALUE -->
+|S_OTHER_OTHER_VALUE|
<!-- ELSE -->
03
<!-- ENDIF -->