mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-25 12:35:55 +02:00
[feature/twig] Add simple test to make sure Twig filters/tags are working
PHPBB3-11598
This commit is contained in:
@ -309,6 +309,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||
"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 -->
|
Reference in New Issue
Block a user