mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-12 03:34:15 +01:00
[ticket/16856] Add tests for lang_js() function
PHPBB3-16856
This commit is contained in:
parent
79a8ed4677
commit
ad23388043
@ -367,6 +367,21 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||
"Value'\n1 O'Clock\nValue\\u0027\n1\\u0020O\\u0027Clock",
|
||||
array('VARIABLE' => "Value'", '1_VARIABLE' => "1 O'Clock"),
|
||||
),
|
||||
array(
|
||||
'lang_twig.html',
|
||||
array(),
|
||||
array(),
|
||||
array(),
|
||||
"VARIABLE\n1_VARIABLE\nVARIABLE\n1_VARIABLE",
|
||||
),
|
||||
array(
|
||||
'lang_twig.html',
|
||||
array(),
|
||||
array(),
|
||||
array(),
|
||||
"Value'\n1 O'Clock\nValue\\u0027\n1\\u0020O\\u0027Clock",
|
||||
array('VARIABLE' => "Value'", '1_VARIABLE' => "1 O'Clock"),
|
||||
),
|
||||
array(
|
||||
'loop_nested_multilevel_ref.html',
|
||||
array(),
|
||||
|
5
tests/template/templates/lang_twig.html
Normal file
5
tests/template/templates/lang_twig.html
Normal file
@ -0,0 +1,5 @@
|
||||
{{ lang('VARIABLE') }}
|
||||
{{ lang('1_VARIABLE') }}
|
||||
|
||||
{{ lang_js('VARIABLE') }}
|
||||
{{ lang_js('1_VARIABLE') }}
|
Loading…
x
Reference in New Issue
Block a user