File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Tests Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments