Skip to content

Commit

Permalink
Added Tests for legend text position
Browse files Browse the repository at this point in the history
  • Loading branch information
Grasseh committed Jul 28, 2016
1 parent e7e0a8e commit 02f7e0c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/controls/LegendTextControlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,11 @@ public function testLegendTextPrepare()
$expected = '<div class="input-group"><span class="input-group-addon">legend</span><input type="text" name="test" value="default" class="toaster"/></div>';
$this->assertEquals($text->prepare(['test', ['class' => 'toaster'], 'default', 'legend']), $expected);
}

public function testLegendTextPrepareRight()
{
$text = new LegendText();
$expected = '<div class="input-group"><input type="text" name="test" value="default" class="toaster"/><span class="input-group-addon">legend</span></div>';
$this->assertEquals($text->prepare(['test', ['class' => 'toaster', 'position' => 'right'], 'default', 'legend']), $expected);
}
}

0 comments on commit 02f7e0c

Please sign in to comment.