Skip to content

Commit d6a6d50

Browse files
test: remove test that ensure child models couldn't be indexed
1 parent 013a718 commit d6a6d50

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -141,23 +141,6 @@ class APICoreModelCacheTestCase extends TestCase {
141141
);
142142
}
143143

144-
/**
145-
* Ensures we cannot index a cached ModelSet for a Model that has a parent model class.
146-
*/
147-
public function test_model_index_field_cannot_have_parent_model_class(): void {
148-
# Ensure attempting to index the Model by the non-unique field throws an error
149-
$this->assert_throws_response(
150-
response_id: 'MODEL_CACHE_INDEX_FIELD_ON_PARENTED_MODEL',
151-
code: 500,
152-
callable: function () {
153-
ModelCache::index_modelset_by_field(
154-
model_class: DNSResolverHostOverrideAlias::get_class_fqn(),
155-
index_field: 'id',
156-
);
157-
},
158-
);
159-
}
160-
161144
/**
162145
* Ensures the index_modelset_by_field() method correctly indexes a cached ModelSet by the specified field. This
163146
* test also ensures the has_model() and fetch_model() methods work as expected for indexed Model objects.

0 commit comments

Comments
 (0)