Merge remote-tracking branch 'vsephpbb/ticket/7580' into develop

* vsephpbb/ticket/7580:
  [ticket/7580] Add test for IF {VAR} is defined in templates
This commit is contained in:
Joas Schilling 2014-03-17 15:55:51 +01:00
commit 6fba2c6778
2 changed files with 11 additions and 0 deletions

View file

@ -90,6 +90,13 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
array(), array(),
'03!false', '03!false',
), ),
array(
'if.html',
array('VALUE_TEST' => 'value'),
array(),
array(),
'03!falsevalue',
),
array( array(
'loop.html', 'loop.html',
array(), array(),

View file

@ -19,3 +19,7 @@ false
<!-- IF S_TEST !== false --> <!-- IF S_TEST !== false -->
!false !false
<!-- ENDIF --> <!-- ENDIF -->
<!-- IF VALUE_TEST is defined -->
{VALUE_TEST}
<!-- ENDIF -->