mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
[feature/twig] Add simple test to make sure Twig filters/tags are working
PHPBB3-11598
This commit is contained in:
parent
70a553e0b5
commit
47ec38c011
3 changed files with 20 additions and 0 deletions
|
@ -309,6 +309,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||||
"a\nb\nc\nd",
|
"a\nb\nc\nd",
|
||||||
),
|
),
|
||||||
*/
|
*/
|
||||||
|
array(
|
||||||
|
'twig.html',
|
||||||
|
array('VARIABLE' => 'FOObar',),
|
||||||
|
array(),
|
||||||
|
array(),
|
||||||
|
"13FOOBAR|foobar",
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
tests/template/templates/twig.html
Normal file
6
tests/template/templates/twig.html
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<!-- EXTENDS "twig_parent.html" -->
|
||||||
|
|
||||||
|
<!-- BLOCK overwritten -->
|
||||||
|
3{VARIABLE|upper}|{VARIABLE|lower}
|
||||||
|
<!-- ENDBLOCK -->
|
||||||
|
|
7
tests/template/templates/twig_parent.html
Normal file
7
tests/template/templates/twig_parent.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<!-- BLOCK notoverwritten -->
|
||||||
|
1
|
||||||
|
<!-- ENDBLOCK -->
|
||||||
|
|
||||||
|
<!-- BLOCK overwritten -->
|
||||||
|
2
|
||||||
|
<!-- ENDBLOCK -->
|
Loading…
Add table
Reference in a new issue