From 66662e197a01bccf42375beafad42eb26bc0d354 Mon Sep 17 00:00:00 2001 From: Sergei Tigrov Date: Sun, 5 May 2024 15:05:38 +0700 Subject: [PATCH 1/2] Update tests according to the main PR (#301) --- tests/CommandTest.php | 4 ++-- tests/Provider/CommandProvider.php | 4 ++-- tests/QueryBuilderTest.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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); } /** From 236133e25c2e84e10708e4d667a27b7784e1ada3 Mon Sep 17 00:00:00 2001 From: Sergei Tigrov Date: Sun, 5 May 2024 15:20:00 +0700 Subject: [PATCH 2/2] Disable BC [skip ci] --- .github/workflows/{bc.yml => bc.yml_} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{bc.yml => bc.yml_} (100%) diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml_ similarity index 100% rename from .github/workflows/bc.yml rename to .github/workflows/bc.yml_