diff --git a/tests/QueryTest.php b/tests/QueryTest.php index 3c9363d7..969357a7 100644 --- a/tests/QueryTest.php +++ b/tests/QueryTest.php @@ -483,9 +483,10 @@ public function testFacets() $query = new Query(); $results = $query->from('yii2_test_article_index') ->match('about') + ->select(new Expression('INTERVAL(author_id,200,400,600,800) AS range')) ->facets([ 'range' => [ - 'select' => 'INTERVAL(author_id,200,400,600,800) AS range', + 'select' => 'range', ], 'authorId' => [ 'select' => [new Expression('author_id AS authorId')],