Commit 3ba9dcbe by Qiang Xue

Fixed test break.

parent 2efb5aaf
......@@ -206,7 +206,7 @@ class QueryTest extends ElasticSearchTestCase
{
$query = new Query();
$query->filterWhere(['and', ['like', 'name', ''], ['like', 'title', ''], ['id' => 1], ['not', ['like', 'name', '']]]);
$this->assertEquals(['id' => 1], $query->where);
$this->assertEquals(['and', ['id' => 1]], $query->where);
}
// TODO test facets
......
......@@ -296,6 +296,6 @@ class ActiveRecordTest extends RedisTestCase
{
$query = new ActiveQuery();
$query->filterWhere(['and', ['like', 'name', ''], ['like', 'title', ''], ['id' => 1], ['not', ['like', 'name', '']]]);
$this->assertEquals(['id' => 1], $query->where);
$this->assertEquals(['and', ['id' => 1]], $query->where);
}
}
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