diff --git a/tests/ActiveFieldTest.php b/tests/ActiveFieldTest.php index 05d1cf7..231e262 100644 --- a/tests/ActiveFieldTest.php +++ b/tests/ActiveFieldTest.php @@ -162,6 +162,24 @@ HTML; + +HTML; + $this->assertEqualsWithoutLE($expectedHtml, $html); + } + + /** + * @test checkbox + */ + public function testCheckboxSwitch() + { + $html = $this->activeField->checkbox(['switch' => true])->render(); + + $expectedHtml = << +