File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1379,14 +1379,16 @@ public function testNestedObjectAttributeEdgeCases(): void
13791379 ])
13801380 ]);
13811381
1382- try {
1383- $ database ->find ($ collectionId , [
1384- Query::equal ('profile.level1.level2.level3.level4.value ' , [10 ])
1385- ]);
1386- $ this ->fail ('Expected nesting as string ' );
1387- } catch (Exception $ e ) {
1388- $ this ->assertInstanceOf (QueryException::class, $ e );
1389- $ this ->assertEquals ('Invalid query: Query value is invalid for attribute "profile" ' , $ e ->getMessage ());
1382+ if ($ database ->getAdapter ()->getSupportForAttributes ()) {
1383+ try {
1384+ $ database ->find ($ collectionId , [
1385+ Query::equal ('profile.level1.level2.level3.level4.value ' , [10 ])
1386+ ]);
1387+ $ this ->fail ('Expected nesting as string ' );
1388+ } catch (Exception $ e ) {
1389+ $ this ->assertInstanceOf (QueryException::class, $ e );
1390+ $ this ->assertEquals ('Invalid query: Query value is invalid for attribute "profile" ' , $ e ->getMessage ());
1391+ }
13901392 }
13911393
13921394 $ results = $ database ->find ($ collectionId , [
You can’t perform that action at this time.
0 commit comments