@@ -274,7 +274,7 @@ public function testGinIndexValidation(): void
274274 ]);
275275
276276 // Validator with objectIndexSupport enabled
277- $ validator = new Index ($ collection ->getAttribute ('attributes ' ), 768 , [], false , false , false , false , true );
277+ $ validator = new Index ($ collection ->getAttribute ('attributes ' ), $ collection -> getAttribute ( ' indexes ' , []), 768 , [], false , false , false , false , true );
278278
279279 // Valid: GIN index on single TYPE_OBJECT attribute
280280 $ validIndex = new Document ([
@@ -320,7 +320,7 @@ public function testGinIndexValidation(): void
320320 $ this ->assertStringContainsString ('GIN indexes do not support explicit orders ' , $ validator ->getDescription ());
321321
322322 // Validator with objectIndexSupport disabled should reject GIN
323- $ validatorNoSupport = new Index ($ collection ->getAttribute ('attributes ' ), 768 , [], false , false , false , false , false );
323+ $ validatorNoSupport = new Index ($ collection ->getAttribute ('attributes ' ), $ collection -> getAttribute ( ' indexes ' , []), 768 , [], false , false , false , false , false );
324324 $ this ->assertFalse ($ validatorNoSupport ->isValid ($ validIndex ));
325325 $ this ->assertEquals ('GIN indexes are not supported ' , $ validatorNoSupport ->getDescription ());
326326 }
0 commit comments