Skip to content

Commit 66662e1

Browse files
authored
Update tests according to the main PR (#301)
1 parent 8efbb3e commit 66662e1

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/CommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ public function testAlterColumn(): void
155155
*/
156156
public function testBatchInsert(
157157
string $table,
158-
array $columns,
159158
iterable $values,
159+
array $columns,
160160
string $expected,
161161
array $expectedParams = [],
162162
int $insertedRow = 1
163163
): void {
164-
parent::testBatchInsert($table, $columns, $values, $expected, $expectedParams, $insertedRow);
164+
parent::testBatchInsert($table, $values, $columns, $expected, $expectedParams, $insertedRow);
165165
}
166166

167167
/**

tests/Provider/CommandProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ public static function batchInsert(): array
1717
{
1818
$batchInsert = parent::batchInsert();
1919

20-
$batchInsert['batchInsert binds json params'] = [
20+
$batchInsert['binds json params'] = [
2121
'{{%type}}',
22-
['int_col', 'char_col', 'float_col', 'bool_col', 'json_col'],
2322
[
2423
[1, 'a', 0.0, true, ['a' => 1, 'b' => true, 'c' => [1, 2, 3]]],
2524
[2, 'b', -1.0, false, new JsonExpression(['d' => 'e', 'f' => false, 'g' => [4, 5, null]])],
2625
],
26+
['int_col', 'char_col', 'float_col', 'bool_col', 'json_col'],
2727
'expected' => 'INSERT INTO `type` (`int_col`, `char_col`, `float_col`, `bool_col`, `json_col`) '
2828
. 'VALUES (:qp0, :qp1, :qp2, :qp3, :qp4), (:qp5, :qp6, :qp7, :qp8, :qp9)',
2929
'expectedParams' => [

tests/QueryBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,12 @@ public function testAlterColumn(): void
183183
*/
184184
public function testBatchInsert(
185185
string $table,
186-
array $columns,
187186
iterable $rows,
187+
array $columns,
188188
string $expected,
189189
array $expectedParams = [],
190190
): void {
191-
parent::testBatchInsert($table, $columns, $rows, $expected, $expectedParams);
191+
parent::testBatchInsert($table, $rows, $columns, $expected, $expectedParams);
192192
}
193193

194194
/**

0 commit comments

Comments
 (0)