diff --git a/tests/CommandTest.php b/tests/CommandTest.php index 63a0db12..aaa7c38a 100644 --- a/tests/CommandTest.php +++ b/tests/CommandTest.php @@ -155,13 +155,13 @@ public function testAlterColumn(): void */ public function testBatchInsert( string $table, - array $columns, iterable $values, + array $columns, string $expected, array $expectedParams = [], int $insertedRow = 1 ): void { - parent::testBatchInsert($table, $columns, $values, $expected, $expectedParams, $insertedRow); + parent::testBatchInsert($table, $values, $columns, $expected, $expectedParams, $insertedRow); } /** diff --git a/tests/Provider/CommandProvider.php b/tests/Provider/CommandProvider.php index afdc6f5a..2286099b 100644 --- a/tests/Provider/CommandProvider.php +++ b/tests/Provider/CommandProvider.php @@ -17,13 +17,13 @@ public static function batchInsert(): array { $batchInsert = parent::batchInsert(); - $batchInsert['batchInsert binds json params'] = [ + $batchInsert['binds json params'] = [ '{{%type}}', - ['int_col', 'char_col', 'float_col', 'bool_col', 'json_col'], [ [1, 'a', 0.0, true, ['a' => 1, 'b' => true, 'c' => [1, 2, 3]]], [2, 'b', -1.0, false, new JsonExpression(['d' => 'e', 'f' => false, 'g' => [4, 5, null]])], ], + ['int_col', 'char_col', 'float_col', 'bool_col', 'json_col'], 'expected' => 'INSERT INTO `type` (`int_col`, `char_col`, `float_col`, `bool_col`, `json_col`) ' . 'VALUES (:qp0, :qp1, :qp2, :qp3, :qp4), (:qp5, :qp6, :qp7, :qp8, :qp9)', 'expectedParams' => [ diff --git a/tests/QueryBuilderTest.php b/tests/QueryBuilderTest.php index 42e51121..d9f58b9b 100644 --- a/tests/QueryBuilderTest.php +++ b/tests/QueryBuilderTest.php @@ -183,12 +183,12 @@ public function testAlterColumn(): void */ public function testBatchInsert( string $table, - array $columns, iterable $rows, + array $columns, string $expected, array $expectedParams = [], ): void { - parent::testBatchInsert($table, $columns, $rows, $expected, $expectedParams); + parent::testBatchInsert($table, $rows, $columns, $expected, $expectedParams); } /**