mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 23:25:30 +02:00
[feature/template-engine] Added a test for multilevel references in loops.
This currently fails. This test is a reduced version of permission_mask template in acp, which is not correctly compiled by the current template engine code. PHPBB3-9726
This commit is contained in:
parent
5c3ebb3465
commit
e10d62badc
@ -265,6 +265,20 @@ class phpbb_template_template_test extends phpbb_test_case
|
||||
array(),
|
||||
"{ VARIABLE }\nValue'",
|
||||
),
|
||||
array(
|
||||
'loop_nested_multilevel_ref.html',
|
||||
array(),
|
||||
array(),
|
||||
array(),
|
||||
"top-level content",
|
||||
),
|
||||
array(
|
||||
'loop_nested_multilevel_ref.html',
|
||||
array(),
|
||||
array('outer' => array(array('VARIABLE' => 'x'), array('VARIABLE' => 'y')), 'outer.inner' => array(array('VARIABLE' => 'z'), array('VARIABLE' => 'zz'))),
|
||||
array(),
|
||||
"top-level content",
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
10
tests/template/templates/loop_nested_multilevel_ref.html
Normal file
10
tests/template/templates/loop_nested_multilevel_ref.html
Normal file
@ -0,0 +1,10 @@
|
||||
top-level content
|
||||
<!-- BEGIN outer -->
|
||||
outer content
|
||||
<!-- BEGIN inner -->
|
||||
inner content
|
||||
<!-- IF outer.inner.S_FIRST_ROW -->
|
||||
first row
|
||||
<!-- ENDIF -->
|
||||
<!-- END inner -->
|
||||
<!-- END outer -->
|
Loading…
x
Reference in New Issue
Block a user