aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2011-09-24 20:48:37 +0100
committerChris Smith <toonarmy@phpbb.com>2011-09-24 20:48:37 +0100
commitfbb5c641b8163861bcb68b87fc08f0481ee54fac (patch)
tree7555f462191968c1eb89a7517abe0655ef3102de
parentfab0ec64b383c672e91db8524a225671795d4805 (diff)
downloadforums-fbb5c641b8163861bcb68b87fc08f0481ee54fac.tar
forums-fbb5c641b8163861bcb68b87fc08f0481ee54fac.tar.gz
forums-fbb5c641b8163861bcb68b87fc08f0481ee54fac.tar.bz2
forums-fbb5c641b8163861bcb68b87fc08f0481ee54fac.tar.xz
forums-fbb5c641b8163861bcb68b87fc08f0481ee54fac.zip
[ticket/10384] Update unit tests to test for failing variable.
PHPBB3-10384
-rw-r--r--tests/template/template_test.php10
-rw-r--r--tests/template/templates/lang.html2
2 files changed, 7 insertions, 5 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php
index 28eba05217..8ea21444f3 100644
--- a/tests/template/template_test.php
+++ b/tests/template/template_test.php
@@ -211,21 +211,21 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
array(),
array(),
array(),
- "{ VARIABLE }\n{ VARIABLE }",
+ "{ VARIABLE }\n{ 1_VARIABLE }\n{ VARIABLE }\n{ 1_VARIABLE }",
),
array(
'lang.html',
- array('L_VARIABLE' => "Value'"),
+ array('L_VARIABLE' => "Value'", 'L_1_VARIABLE' => "1 O'Clock"),
array(),
array(),
- "Value'\nValue\'",
+ "Value'\n1 O'Clock\nValue\'\n1 O\'Clock",
),
array(
'lang.html',
- array('LA_VARIABLE' => "Value'"),
+ array('LA_VARIABLE' => "Value'", 'LA_1_VARIABLE' => "1 O'Clock"),
array(),
array(),
- "{ VARIABLE }\nValue'",
+ "{ VARIABLE }\n{ 1_VARIABLE }\nValue'\n1 O'Clock",
),
array(
'loop_nested_multilevel_ref.html',
diff --git a/tests/template/templates/lang.html b/tests/template/templates/lang.html
index 2b5ea1cafe..3eecc298cb 100644
--- a/tests/template/templates/lang.html
+++ b/tests/template/templates/lang.html
@@ -1,3 +1,5 @@
{L_VARIABLE}
+{L_1_VARIABLE}
{LA_VARIABLE}
+{LA_1_VARIABLE}