Skip to content

Commit e51496d

Browse files
test: fix null assertion in KeyLenField test
1 parent f172175 commit e51496d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Tests/APIFieldsKeyLenFieldTestCase.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class APIFieldsKeyLenFieldTestCase extends TestCase {
3939
public function test_from_internal_empty_string_returns_null(): void {
4040
$field = new KeyLenField(allow_null: true);
4141
$field->from_internal('');
42-
$this->assert_is_null($field->value);
42+
$this->assert_equals($field->value, null);
4343
}
4444

4545
/**

0 commit comments

Comments
 (0)