mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Testing nested if blocks in SSViewerTest
This commit is contained in:
parent
19e9b19a1a
commit
b36ad3b876
@ -208,6 +208,10 @@ after')
|
||||
$this->assertEquals('AC',
|
||||
$this->render('A<% if NotSet %>B$NotSet<% end_if %>C'));
|
||||
|
||||
// Nested test
|
||||
$this->assertEquals('AB1C',
|
||||
$this->render('A<% if IsSet %>B$NotSet<% if IsSet %>1<% else %>2<% end_if %><% end_if %>C'));
|
||||
|
||||
// else_if
|
||||
$this->assertEquals('ACD',
|
||||
$this->render('A<% if NotSet %>B<% else_if IsSet %>C<% end_if %>D'));
|
||||
|
Loading…
Reference in New Issue
Block a user