Skip to content

Commit 85be9a8

Browse files
updated tests
1 parent 6de1a2d commit 85be9a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/e2e/Adapter/Scopes/SchemalessTests.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)