Fixed test break.

This commit is contained in:
Qiang Xue
2014-04-02 20:26:55 -04:00
parent 2efb5aaf31
commit 3ba9dcbedc
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);
}
}