File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1813,22 +1813,22 @@ public function testSchemalessNestedObjectAttributeQueries(): void
18131813
18141814 // contains on object attribute using nested structure: parent.key and [key => [key => 'value']]
18151815 $ matchedByNestedContains = $ database ->find ($ col , [
1816- Query::contains ('profile ' , [
1816+ Query::contains ('profile ' , [[
18171817 'location ' => [
18181818 'city ' => 'London ' ,
18191819 ],
1820- ]),
1820+ ]] ),
18211821 ]);
18221822 $ this ->assertCount (1 , $ matchedByNestedContains );
18231823 $ this ->assertEquals ('u2 ' , $ matchedByNestedContains [0 ]->getId ());
18241824
18251825 // equal on object attribute using nested structure should behave similarly
18261826 $ matchedByNestedEqual = $ database ->find ($ col , [
1827- Query::equal ('profile ' , [
1827+ Query::equal ('profile ' , [[
18281828 'location ' => [
18291829 'country ' => 'US ' ,
18301830 ],
1831- ]),
1831+ ]] ),
18321832 ]);
18331833 $ this ->assertCount (2 , $ matchedByNestedEqual );
18341834 $ idsEqual = array_map (fn (Document $ doc ) => $ doc ->getId (), $ matchedByNestedEqual );
You can’t perform that action at this time.
0 commit comments