diff options
author | rechosen <rechosen@gmail.com> | 2013-09-13 13:48:00 +0200 |
---|---|---|
committer | rechosen <rechosen@gmail.com> | 2013-09-13 13:53:39 +0200 |
commit | 658f6e204510b328509a0387eb9711617fdc3bee (patch) | |
tree | 839db078e52b5362c1b8e8541411ce3dba3b06a4 /tests | |
parent | 45ecbae1edd32224dd6e2b1aaee5f289afddb7b9 (diff) | |
download | forums-658f6e204510b328509a0387eb9711617fdc3bee.tar forums-658f6e204510b328509a0387eb9711617fdc3bee.tar.gz forums-658f6e204510b328509a0387eb9711617fdc3bee.tar.bz2 forums-658f6e204510b328509a0387eb9711617fdc3bee.tar.xz forums-658f6e204510b328509a0387eb9711617fdc3bee.zip |
[ticket/11843] Added newlines and included numbers in the DEFINE vars test
Per suggestion of nickvergessen, I added newlines in the DEFINE variables with
underscores test. Now if the test fails, it's easier to spot which part is
failing. Also added a test for DEFINE variables containing numbers.
PHPBB3-11843
Diffstat (limited to 'tests')
-rw-r--r-- | tests/template/template_test.php | 2 | ||||
-rw-r--r-- | tests/template/templates/include_define_variable.html | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php index c28c7a70bc..2cca20f4c2 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -237,7 +237,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case array('VARIABLE' => 'variable.html'), array(), array(), - 'variable.htmlvariable.html', + "variable.html\nvariable.html\nvariable.html", ), array( 'include_loop_define.html', diff --git a/tests/template/templates/include_define_variable.html b/tests/template/templates/include_define_variable.html index fceeebf5df..6052657c97 100644 --- a/tests/template/templates/include_define_variable.html +++ b/tests/template/templates/include_define_variable.html @@ -1,4 +1,8 @@ <!-- DEFINE $DEF = '{VARIABLE}' --> <!-- INCLUDE {$DEF} --> + <!-- DEFINE $DEF_WITH_UNDERSCORES = '{VARIABLE}' --> <!-- INCLUDE {$DEF_WITH_UNDERSCORES} --> + +<!-- DEFINE $DEF123 = '{VARIABLE}' --> +<!-- INCLUDE {$DEF123} --> |