1
0
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:
Marc Alexander 2021-08-24 19:04:25 +02:00
parent 79a8ed4677
commit ad23388043
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
2 changed files with 20 additions and 0 deletions

View File

@ -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(),

View File

@ -0,0 +1,5 @@
{{ lang('VARIABLE') }}
{{ lang('1_VARIABLE') }}
{{ lang_js('VARIABLE') }}
{{ lang_js('1_VARIABLE') }}