diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2013-01-13 18:28:51 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2013-01-13 18:28:51 -0500 |
commit | 90235754b3919eafcb47047a8aac0fa0f075087e (patch) | |
tree | c8658c5888f774c91527a951b5aa86bfeb908357 /tests/template | |
parent | 0b0b5e15c3b7fc55774df09025f6bb206f7df4bd (diff) | |
download | forums-90235754b3919eafcb47047a8aac0fa0f075087e.tar forums-90235754b3919eafcb47047a8aac0fa0f075087e.tar.gz forums-90235754b3919eafcb47047a8aac0fa0f075087e.tar.bz2 forums-90235754b3919eafcb47047a8aac0fa0f075087e.tar.xz forums-90235754b3919eafcb47047a8aac0fa0f075087e.zip |
[ticket/11323] Backport include_define test to olympus.
PHPBB3-11323
Diffstat (limited to 'tests/template')
-rw-r--r-- | tests/template/template_test.php | 7 | ||||
-rw-r--r-- | tests/template/templates/include_define.html | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php index 9b3c6ac245..83af63cdd9 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -233,6 +233,13 @@ class phpbb_template_template_test extends phpbb_test_case 'value', ), array( + 'include_define.html', + array('VARIABLE' => 'value'), + array(), + array(), + 'value', + ), + array( 'loop_vars.html', array(), array('loop' => array(array('VARIABLE' => 'x'), array('VARIABLE' => 'y')), 'loop.inner' => array(array(), array())), diff --git a/tests/template/templates/include_define.html b/tests/template/templates/include_define.html new file mode 100644 index 0000000000..2419c8cba1 --- /dev/null +++ b/tests/template/templates/include_define.html @@ -0,0 +1,2 @@ +<!-- DEFINE $DEF = 'variable.html' --> +<!-- INCLUDE {$DEF} --> |