Skip to content

Commit 0959e62

Browse files
committed
Fixed unit tests.
1 parent 8b3a267 commit 0959e62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/Fields/ChoiceFieldTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public function testToNative()
3737
$this->assertEquals("", $this->field->toNative(false));
3838
$this->assertEquals("1", $this->field->toNative(true));
3939
$this->assertEquals("false", $this->field->toNative("false"));
40-
$this->assertEquals("", $this->field->toNative("0"));
40+
$this->assertEquals("0", $this->field->toNative("0"));
41+
$this->assertEquals("0", $this->field->toNative(0));
4142
$this->assertEquals("1", $this->field->toNative("1"));
4243
$this->assertEquals("aa", $this->field->toNative("aa"));
4344
}

0 commit comments

Comments
 (0)