Add tests with field path in type map for Aggregate and FindAndModify

parent 5e503d0f
...@@ -305,6 +305,13 @@ class AggregateFunctionalTest extends FunctionalTestCase ...@@ -305,6 +305,13 @@ class AggregateFunctionalTest extends FunctionalTestCase
['_id' => 3, 'x' => (object) ['foo' => 'bar']], ['_id' => 3, 'x' => (object) ['foo' => 'bar']],
], ],
], ],
[
['root' => 'array', 'document' => 'stdClass', 'fieldPaths' => ['x' => 'array']],
[
['_id' => 1, 'x' => ['foo' => 'bar']],
['_id' => 3, 'x' => ['foo' => 'bar']],
],
],
]; ];
} }
......
...@@ -164,6 +164,10 @@ class FindAndModifyFunctionalTest extends FunctionalTestCase ...@@ -164,6 +164,10 @@ class FindAndModifyFunctionalTest extends FunctionalTestCase
['root' => BSONDocument::class, 'document' => 'object'], ['root' => BSONDocument::class, 'document' => 'object'],
new BSONDocument(['_id' => 1, 'x' => (object) ['foo' => 'bar']]), new BSONDocument(['_id' => 1, 'x' => (object) ['foo' => 'bar']]),
], ],
[
['root' => 'array', 'document' => 'stdClass', 'fieldPaths' => ['x' => 'array']],
['_id' => 1, 'x' => ['foo' => 'bar']],
],
]; ];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment