Skip to content

Commit

Permalink
tweak: test correct checkable
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Jan 6, 2024
1 parent 3afc705 commit eb3d0a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/phpunit/Rule/TypeCheckboxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use Gt\Dom\Element;
use Gt\Dom\ElementType;
use Gt\Dom\HTMLDocument;
use Gt\DomValidation\Rule\TypeCheckbox;
use Gt\DomValidation\Rule\TypeRadio;
use Gt\DomValidation\Test\Helper\Helper;
use Gt\DomValidation\ValidationException;
Expand Down Expand Up @@ -70,7 +71,7 @@ public function testIsValid_noForm():void {
$document = new HTMLDocument();
$element = $document->createElement("input");
$element->type = "checkbox";
$sut = new TypeRadio();
$sut = new TypeCheckbox();

$validity = $sut->isValid($element, "anything", []);
self::assertTrue($validity);
Expand Down

0 comments on commit eb3d0a7

Please sign in to comment.