mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[feature/twig] Add test to make sure nested loops get the correct S_ROW_COUNT
PHPBB3-11598
This commit is contained in:
parent
84e0943c7b
commit
81f27fd87e
2 changed files with 13 additions and 0 deletions
|
@ -125,6 +125,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
|||
array(),
|
||||
"101234561\nx\n101234561\nx\n101234561\nx\n1234561\nx\n1\nx\n101\nx\n234\nx\n10\nx\n561\nx\n561",
|
||||
),
|
||||
array(
|
||||
'loop_nested2.html',
|
||||
array(),
|
||||
array('outer' => array(array(), array()), 'outer.middle' => array(array(), array())),
|
||||
array(),
|
||||
"o0o1m01m11",
|
||||
),
|
||||
array(
|
||||
'define.html',
|
||||
array(),
|
||||
|
|
6
tests/template/templates/loop_nested2.html
Normal file
6
tests/template/templates/loop_nested2.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<!-- BEGIN outer -->
|
||||
o{outer.S_ROW_COUNT}
|
||||
<!-- BEGIN middle -->
|
||||
m{outer.middle.S_ROW_COUNT}{outer.S_ROW_COUNT}
|
||||
<!-- END middle -->
|
||||
<!-- END outer -->
|
Loading…
Add table
Reference in a new issue