Skip to content

Commit 579b728

Browse files
committed
Fix tests
1 parent 610a3c0 commit 579b728

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Provider/QueryBuilderProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,20 +596,20 @@ public static function multiOperandFunctionBuilder(): array
596596
ArrayMerge::class,
597597
['ARRAY[1,2,3]'],
598598
'(ARRAY[1,2,3])',
599-
'{1,2,3}',
599+
[1, 2, 3],
600600
],
601601
'ArrayMerge with 2 operands' => [
602602
ArrayMerge::class,
603603
['ARRAY[1,2,3]', $stringParam],
604604
'ARRAY(SELECT DISTINCT UNNEST(ARRAY[1,2,3] || :qp0))',
605-
'{1,3,5,4,2}',
605+
[1, 2, 3, 4, 5],
606606
[':qp0' => $stringParam],
607607
],
608608
'ArrayMerge with 4 operands' => [
609609
ArrayMerge::class,
610610
['ARRAY[1,2,3]', [5, 6, 7], $stringParam, self::getDb()->select(new ArrayExpression([9, 10]))],
611611
'ARRAY(SELECT DISTINCT UNNEST(ARRAY[1,2,3] || ARRAY[5,6,7] || :qp0 || (SELECT ARRAY[9,10])))',
612-
'{10,9,7,1,5,4,2,6,3}',
612+
[1, 2, 3, 4, 5, 6, 7, 9, 10],
613613
[
614614
':qp0' => $stringParam,
615615
],

tests/QueryBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ public function testMultiOperandFunctionBuilder(
610610
string $class,
611611
array $operands,
612612
string $expectedSql,
613-
string|int $expectedResult,
613+
array|string|int $expectedResult,
614614
array $expectedParams = [],
615615
): void {
616616
parent::testMultiOperandFunctionBuilder($class, $operands, $expectedSql, $expectedResult, $expectedParams);

0 commit comments

Comments
 (0)