Skip to content

Commit 187cc93

Browse files
test(KeyLenField): to internal should produce a string, not int
1 parent 3c9decc commit 187cc93

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
@@ -72,7 +72,7 @@ class APIFieldsKeyLenFieldTestCase extends TestCase {
7272
public function test_to_internal_non_zero_passes_through(): void {
7373
$field = new KeyLenField(default: 128);
7474
$field->value = 128;
75-
$this->assert_equals($field->to_internal(), 128);
75+
$this->assert_equals($field->to_internal(), '128');
7676
}
7777

7878
/**

0 commit comments

Comments
 (0)