1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-21 08:12:17 +02:00

[ticket/11843] Add checking DEFINE variables with underscores to template_test

To prevent the underscore in DEFINE variables from being forgotten again,
the template tests now test INCLUDEing a file based on the contents of a
DEFINE variable with underscores in it.

PHPBB3-11843
This commit is contained in:
rechosen 2013-09-13 12:27:07 +02:00
parent 42884546cc
commit 45ecbae1ed
2 changed files with 3 additions and 1 deletions

View File

@ -237,7 +237,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
array('VARIABLE' => 'variable.html'),
array(),
array(),
'variable.html',
'variable.htmlvariable.html',
),
array(
'include_loop_define.html',

View File

@ -1,2 +1,4 @@
<!-- DEFINE $DEF = '{VARIABLE}' -->
<!-- INCLUDE {$DEF} -->
<!-- DEFINE $DEF_WITH_UNDERSCORES = '{VARIABLE}' -->
<!-- INCLUDE {$DEF_WITH_UNDERSCORES} -->