Skip to content

Commit b89e9f4

Browse files
committed
unit test added
1 parent a8c0b23 commit b89e9f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/HtmlTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ public function testError()
162162

163163
$this->assertEquals('<p class="help-block help-block-error">Some error message.</p>', Html::error($model, 'foo'));
164164
$this->assertEquals('<p class="custom-class">Some error message.</p>', Html::error($model, 'foo', ['class' => 'custom-class']));
165+
$this->assertEquals('<p>Some error message.</p>', Html::error($model, 'foo', ['class' => null]));
165166
$this->assertEquals('<div class="help-block help-block-error">Some error message.</div>', Html::error($model, 'foo', ['tag' => 'div']));
166167
}
167168
}

0 commit comments

Comments
 (0)