Commit 3dd8a039 by Dirk Adler

Adds mongodb test for combination conditions

parent b9b4555d
......@@ -101,6 +101,20 @@ class QueryRunTest extends MongoDbTestCase
$this->assertEquals('address5', $rows[1]['address']);
}
public function testCombinedInAndCondition()
{
$connection = $this->getConnection();
$query = new Query;
$rows = $query->from('customer')
->where([
'name' => ['name1', 'name5']
])
->andWhere(['name' => 'name1'])
->all($connection);
$this->assertEquals(1, count($rows));
$this->assertEquals('name1', $rows[0]['name']);
}
public function testOrder()
{
$connection = $this->getConnection();
......
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