Commit b89e9f4b authored by Klimov Paul's avatar Klimov Paul

unit test added

parent a8c0b23e
...@@ -162,6 +162,7 @@ EOD; ...@@ -162,6 +162,7 @@ EOD;
$this->assertEquals('<p class="help-block help-block-error">Some error message.</p>', Html::error($model, 'foo')); $this->assertEquals('<p class="help-block help-block-error">Some error message.</p>', Html::error($model, 'foo'));
$this->assertEquals('<p class="custom-class">Some error message.</p>', Html::error($model, 'foo', ['class' => 'custom-class'])); $this->assertEquals('<p class="custom-class">Some error message.</p>', Html::error($model, 'foo', ['class' => 'custom-class']));
$this->assertEquals('<p>Some error message.</p>', Html::error($model, 'foo', ['class' => null]));
$this->assertEquals('<div class="help-block help-block-error">Some error message.</div>', Html::error($model, 'foo', ['tag' => 'div'])); $this->assertEquals('<div class="help-block help-block-error">Some error message.</div>', Html::error($model, 'foo', ['tag' => 'div']));
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment