1
0
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:
Joas Schilling 2014-04-12 11:11:28 +02:00
parent 09804bbae8
commit b3a758a43b
3 changed files with 19 additions and 0 deletions

View File

@ -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',

View File

@ -0,0 +1,4 @@
<!-- BEGIN test_loop -->
[{test_loop.foo}
|<!-- INCLUDE loop_nested_include1.html -->]
<!-- END test_loop -->

View File

@ -0,0 +1,5 @@
[{test_loop.foo}|
<!-- BEGIN inner -->
[{test_loop.foo}|
{test_loop.inner.myinner}]
<!-- END inner -->]