diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-03-17 15:55:51 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-03-17 15:55:51 +0100 |
commit | 6fba2c6778b33c217649ab4b3c58ab12363b8cd6 (patch) | |
tree | 9f9e30cdde159d706c293e2fa0f5a8a0e8f088b1 | |
parent | ee754dfab1114b1606c8299274627aeae01746bb (diff) | |
parent | d8c1c7fb9aa2aa6d76c4e9769f1bb2c135909b23 (diff) | |
download | forums-6fba2c6778b33c217649ab4b3c58ab12363b8cd6.tar forums-6fba2c6778b33c217649ab4b3c58ab12363b8cd6.tar.gz forums-6fba2c6778b33c217649ab4b3c58ab12363b8cd6.tar.bz2 forums-6fba2c6778b33c217649ab4b3c58ab12363b8cd6.tar.xz forums-6fba2c6778b33c217649ab4b3c58ab12363b8cd6.zip |
Merge remote-tracking branch 'vsephpbb/ticket/7580' into develop
* vsephpbb/ticket/7580:
[ticket/7580] Add test for IF {VAR} is defined in templates
-rw-r--r-- | tests/template/template_test.php | 7 | ||||
-rw-r--r-- | tests/template/templates/if.html | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php index 2b7be9746e..74baa3d5b6 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -91,6 +91,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case '03!false', ), array( + 'if.html', + array('VALUE_TEST' => 'value'), + array(), + array(), + '03!falsevalue', + ), + array( 'loop.html', array(), array(), diff --git a/tests/template/templates/if.html b/tests/template/templates/if.html index f6ab6e575a..71312f994c 100644 --- a/tests/template/templates/if.html +++ b/tests/template/templates/if.html @@ -19,3 +19,7 @@ false <!-- IF S_TEST !== false --> !false <!-- ENDIF --> + +<!-- IF VALUE_TEST is defined --> +{VALUE_TEST} +<!-- ENDIF --> |