mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[feature/template-engine] Test template DEFINE statements across files
PHPBB3-9726
This commit is contained in:
parent
bf34264f4f
commit
ee203b4632
3 changed files with 7 additions and 1 deletions
|
@ -130,7 +130,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||||
array(),
|
array(),
|
||||||
array('loop' => array(array(), array(), array(), array(), array(), array(), array()), 'test' => array(array()), 'test.deep' => array(array()), 'test.deep.defines' => array(array())),
|
array('loop' => array(array(), array(), array(), array(), array(), array(), array()), 'test' => array(array()), 'test.deep' => array(array()), 'test.deep.defines' => array(array())),
|
||||||
array(),
|
array(),
|
||||||
"xyz\nabc",
|
"xyz\nabc\nabc\nbar\nbar\nabc",
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'expressions.html',
|
'expressions.html',
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
{$VALUE}
|
{$VALUE}
|
||||||
<!-- DEFINE $VALUE = 'abc' -->
|
<!-- DEFINE $VALUE = 'abc' -->
|
||||||
{$VALUE}
|
{$VALUE}
|
||||||
|
<!-- INCLUDE define_include.html -->
|
||||||
|
{$INCLUDED_VALUE}
|
||||||
|
{$VALUE}
|
||||||
<!-- UNDEFINE $VALUE -->
|
<!-- UNDEFINE $VALUE -->
|
||||||
{$VALUE}
|
{$VALUE}
|
||||||
<!-- DEFINE $VALUE -->
|
<!-- DEFINE $VALUE -->
|
||||||
|
|
3
tests/template/templates/define_include.html
Normal file
3
tests/template/templates/define_include.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{$VALUE}
|
||||||
|
<!-- DEFINE $INCLUDED_VALUE = 'bar' -->
|
||||||
|
{$INCLUDED_VALUE}
|
Loading…
Add table
Reference in a new issue