mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-15 05:14:28 +02:00
[ticket/12382] Add template test for subloops inside includes
PHPBB3-12382
This commit is contained in:
parent
09804bbae8
commit
b3a758a43b
@ -320,6 +320,16 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||
array(),
|
||||
"barbarbar1bar1",
|
||||
),
|
||||
array(
|
||||
'loop_nested_include.html',
|
||||
array(),
|
||||
array(
|
||||
'test_loop' => array(array('foo' => 'bar'), array('foo' => 'bar1')),
|
||||
'test_loop.inner' => array(array('myinner' => 'works')),
|
||||
),
|
||||
array(),
|
||||
"[bar|[bar|]][bar1|[bar1|[bar1|works]]]",
|
||||
),
|
||||
/* Does not pass with the current implementation.
|
||||
array(
|
||||
'loop_reuse.html',
|
||||
|
4
tests/template/templates/loop_nested_include.html
Normal file
4
tests/template/templates/loop_nested_include.html
Normal file
@ -0,0 +1,4 @@
|
||||
<!-- BEGIN test_loop -->
|
||||
[{test_loop.foo}
|
||||
|<!-- INCLUDE loop_nested_include1.html -->]
|
||||
<!-- END test_loop -->
|
5
tests/template/templates/loop_nested_include1.html
Normal file
5
tests/template/templates/loop_nested_include1.html
Normal file
@ -0,0 +1,5 @@
|
||||
[{test_loop.foo}|
|
||||
<!-- BEGIN inner -->
|
||||
[{test_loop.foo}|
|
||||
{test_loop.inner.myinner}]
|
||||
<!-- END inner -->]
|
Loading…
x
Reference in New Issue
Block a user