1
0
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:
Oleg Pudeyev 2011-04-24 21:56:26 -04:00
parent 5c3ebb3465
commit e10d62badc
2 changed files with 24 additions and 0 deletions

View File

@ -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",
),
);
}

View 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 -->