Browse Source

unit test added

tags/2.0.8
Klimov Paul 7 years ago
parent
commit
b89e9f4bc7
  1. 1
      tests/HtmlTest.php

1
tests/HtmlTest.php

@ -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']));
} }
} }
Loading…
Cancel
Save