From f46bdf72f302c7458ed0eb55cff09d4422327abd Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 24 Nov 2021 13:18:52 +0300 Subject: [PATCH] Update ActiveFieldTest.php --- tests/ActiveFieldTest.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 = << +
+ + +
HTML; $this->assertEqualsWithoutLE($expectedHtml, $html);