Skip to content

Commit 3cf3733

Browse files
fix: allow endpoints for child models to be many enabled
1 parent 35bac8a commit 3cf3733

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,6 @@ class APICoreEndpointTestCase extends TestCase {
8888
$endpoint->check_construct();
8989
},
9090
);
91-
92-
# Ensure endpoints cannot be many if th model has a parent model
93-
$this->assert_throws_response(
94-
response_id: 'ENDPOINT_MANY_WHEN_MODEL_HAS_PARENT',
95-
code: 500,
96-
callable: function () {
97-
# Mock a 'many' endpoint with a non many model
98-
$endpoint = new ServicesDNSResolverHostOverrideAliasEndpoint();
99-
$endpoint->many = true;
100-
$endpoint->request_method_options = ['GET'];
101-
$endpoint->check_construct();
102-
},
103-
);
10491
}
10592

10693
public function test_get_pagination_resource_links(): void {

0 commit comments

Comments
 (0)