mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
[feature/twig] Add test to make sure nested loops get the correct S_ROW_COUNT
PHPBB3-11598
This commit is contained in:
@@ -125,6 +125,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
|||||||
array(),
|
array(),
|
||||||
"101234561\nx\n101234561\nx\n101234561\nx\n1234561\nx\n1\nx\n101\nx\n234\nx\n10\nx\n561\nx\n561",
|
"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(
|
array(
|
||||||
'define.html',
|
'define.html',
|
||||||
array(),
|
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 -->
|
Reference in New Issue
Block a user