diff --git a/tests/Provider/QueryBuilderProvider.php b/tests/Provider/QueryBuilderProvider.php index a9ceb37..c7f51bf 100644 --- a/tests/Provider/QueryBuilderProvider.php +++ b/tests/Provider/QueryBuilderProvider.php @@ -12,7 +12,7 @@ use Yiisoft\Db\Constraint\ForeignKey; use Yiisoft\Db\Expression\Statement\CaseX; use Yiisoft\Db\Expression\Statement\When; -use Yiisoft\Db\Expression\Value\ArrayExpression; +use Yiisoft\Db\Expression\Value\ArrayValue; use Yiisoft\Db\Expression\Expression; use Yiisoft\Db\Expression\Function\ArrayMerge; use Yiisoft\Db\Expression\Value\Param; @@ -543,7 +543,7 @@ public static function multiOperandFunctionBuilder(): array ], 'ArrayMerge with 4 operands' => [ ArrayMerge::class, - ["'[1,2,3]'", [5, 6, 7], $stringParam, self::getDb()->select(new ArrayExpression([9, 10]))], + ["'[1,2,3]'", [5, 6, 7], $stringParam, self::getDb()->select(new ArrayValue([9, 10]))], '(SELECT JSON_ARRAYAGG(value) AS value FROM (' . "SELECT value FROM JSON_TABLE('[1,2,3]', '$[*]' COLUMNS(value PATH '$'))" . " UNION SELECT value FROM JSON_TABLE(:qp0, '$[*]' COLUMNS(value PATH '$'))" diff --git a/tests/QueryBuilderTest.php b/tests/QueryBuilderTest.php index c5fca12..99898b9 100644 --- a/tests/QueryBuilderTest.php +++ b/tests/QueryBuilderTest.php @@ -11,7 +11,7 @@ use Yiisoft\Db\Exception\Exception; use InvalidArgumentException; use Yiisoft\Db\Exception\NotSupportedException; -use Yiisoft\Db\Expression\Value\ArrayExpression; +use Yiisoft\Db\Expression\Value\ArrayValue; use Yiisoft\Db\Expression\Statement\CaseX; use Yiisoft\Db\Expression\ExpressionInterface; use Yiisoft\Db\Expression\Function\ArrayMerge; @@ -632,7 +632,7 @@ public function testArrayMergeWithTypeWithOrdering( "'[2,1,3]'", [6, 5, 7], $stringParam, - self::getDb()->select(new ArrayExpression([10, 9])), + self::getDb()->select(new ArrayValue([10, 9])), ))->type($type)->ordered(); $params = [];