mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/template-engine] Test template DEFINE statements across files
PHPBB3-9726
This commit is contained in:
committed by
Oleg Pudeyev
parent
bf34264f4f
commit
ee203b4632
@@ -130,7 +130,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||
array(),
|
||||
array('loop' => array(array(), array(), array(), array(), array(), array(), array()), 'test' => array(array()), 'test.deep' => array(array()), 'test.deep.defines' => array(array())),
|
||||
array(),
|
||||
"xyz\nabc",
|
||||
"xyz\nabc\nabc\nbar\nbar\nabc",
|
||||
),
|
||||
array(
|
||||
'expressions.html',
|
||||
|
@@ -2,6 +2,9 @@
|
||||
{$VALUE}
|
||||
<!-- DEFINE $VALUE = 'abc' -->
|
||||
{$VALUE}
|
||||
<!-- INCLUDE define_include.html -->
|
||||
{$INCLUDED_VALUE}
|
||||
{$VALUE}
|
||||
<!-- UNDEFINE $VALUE -->
|
||||
{$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}
|
Reference in New Issue
Block a user