Example #1
0
 public function testGenerateQueryShouldReturnSimpleFind()
 {
     $result = $this->driver->generateQuery(Collection::my_coll());
     $this->assertEquals([], $result);
 }
Example #2
0
 public function provideGenerateQueryShouldReturnSimpleFindById()
 {
     return ['simple return' => [Collection::my_coll(42), ['_id' => ['AttributeValueList' => [['N' => 42]], 'ComparisonOperator' => 'EQ']]]];
 }
Example #3
0
 public function provideGenerateQueryShouldReturnSimpleFindById()
 {
     return ['simple return' => [Collection::my_coll('56d6fb233f90a8231f0041a9'), ['_id' => '56d6fb233f90a8231f0041a9']]];
 }