We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b3a267 commit 0959e62Copy full SHA for 0959e62
tests/unit/Fields/ChoiceFieldTest.php
@@ -37,7 +37,8 @@ public function testToNative()
37
$this->assertEquals("", $this->field->toNative(false));
38
$this->assertEquals("1", $this->field->toNative(true));
39
$this->assertEquals("false", $this->field->toNative("false"));
40
- $this->assertEquals("", $this->field->toNative("0"));
+ $this->assertEquals("0", $this->field->toNative("0"));
41
+ $this->assertEquals("0", $this->field->toNative(0));
42
$this->assertEquals("1", $this->field->toNative("1"));
43
$this->assertEquals("aa", $this->field->toNative("aa"));
44
}
0 commit comments