Skip to content

Commit 6df232b

Browse files
test(FilterAddressField): do not allow interface ip in test_allow_interface
1 parent dfa154f commit 6df232b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ class APIFieldsFilterAddressFieldTestCase extends TestCase {
119119
/**
120120
* Checks that interface values are allowed when `allow_interface` is set.
121121
*/
122-
public function test_allow_interface() {
122+
public function test_allow_interface(): void {
123123
# Create field object to test with
124-
$field = new FilterAddressField(allow_interface: true);
124+
$field = new FilterAddressField(allow_interface: true, allow_interface_ip: false);
125125

126126
# Ensure an error is not thrown when the value is allowed
127127
$this->assert_does_not_throw(

0 commit comments

Comments
 (0)