mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/10322] Dynamic template include test
PHPBB3-10322
This commit is contained in:
parent
fbec7c9b2b
commit
b5ecb2f7a8
2 changed files with 10 additions and 0 deletions
|
@ -162,6 +162,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||||
array(),
|
array(),
|
||||||
'value',
|
'value',
|
||||||
),
|
),
|
||||||
|
array(
|
||||||
|
'include_variable.html',
|
||||||
|
array('FILE' => 'variable.html', 'VARIABLE' => 'value'),
|
||||||
|
array(),
|
||||||
|
array(),
|
||||||
|
"value\nvalue",
|
||||||
|
),
|
||||||
array(
|
array(
|
||||||
'loop_vars.html',
|
'loop_vars.html',
|
||||||
array(),
|
array(),
|
||||||
|
|
3
tests/template/templates/include_variable.html
Normal file
3
tests/template/templates/include_variable.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<!-- INCLUDE {FILE} -->
|
||||||
|
<!-- DEFINE $DEF = 'variable.html' -->
|
||||||
|
<!-- INCLUDE {$DEF} -->
|
Loading…
Add table
Reference in a new issue