mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Fixed test break.
This commit is contained in:
@ -206,7 +206,7 @@ class QueryTest extends ElasticSearchTestCase
|
|||||||
{
|
{
|
||||||
$query = new Query();
|
$query = new Query();
|
||||||
$query->filterWhere(['and', ['like', 'name', ''], ['like', 'title', ''], ['id' => 1], ['not', ['like', 'name', '']]]);
|
$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
|
// TODO test facets
|
||||||
|
@ -296,6 +296,6 @@ class ActiveRecordTest extends RedisTestCase
|
|||||||
{
|
{
|
||||||
$query = new ActiveQuery();
|
$query = new ActiveQuery();
|
||||||
$query->filterWhere(['and', ['like', 'name', ''], ['like', 'title', ''], ['id' => 1], ['not', ['like', 'name', '']]]);
|
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user