aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-06-27 16:41:21 +0200
committerTristan Darricau <github@nicofuma.fr>2014-06-27 16:41:21 +0200
commit7ef983b4267db3a71c849a62f91fa1b0a94a78bb (patch)
tree116e150e951a3b061a9f818ced8264bd031daf01 /tests/template
parent6d40b876617422dbca1cb9c0d6b6ac9b43ea1ca3 (diff)
downloadforums-7ef983b4267db3a71c849a62f91fa1b0a94a78bb.tar
forums-7ef983b4267db3a71c849a62f91fa1b0a94a78bb.tar.gz
forums-7ef983b4267db3a71c849a62f91fa1b0a94a78bb.tar.bz2
forums-7ef983b4267db3a71c849a62f91fa1b0a94a78bb.tar.xz
forums-7ef983b4267db3a71c849a62f91fa1b0a94a78bb.zip
[ticket/12781] Add tests
PHPBB3-12781
Diffstat (limited to 'tests/template')
-rw-r--r--tests/template/template_test.php7
-rw-r--r--tests/template/templates/if_nested_tags.html1
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php
index 4f5b7629d5..0bbfe3848d 100644
--- a/tests/template/template_test.php
+++ b/tests/template/template_test.php
@@ -352,6 +352,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
array(),
"13FOOBAR|foobar",
),
+ array(
+ 'if_nested_tags.html',
+ array('S_VALUE' => true,),
+ array(),
+ array(),
+ 'inner_value',
+ ),
);
}
diff --git a/tests/template/templates/if_nested_tags.html b/tests/template/templates/if_nested_tags.html
new file mode 100644
index 0000000000..0348a31a8d
--- /dev/null
+++ b/tests/template/templates/if_nested_tags.html
@@ -0,0 +1 @@
+<!-- IF S_VALUE --><!-- DEFINE $INNER_VALUE = 'inner_value' --><!-- ENDIF -->{$INNER_VALUE}