From cc88e172c85298a0e57a5e640fc6c5bc71bcf684 Mon Sep 17 00:00:00 2001 From: Dmitriy Gritsenko Date: Tue, 1 Apr 2025 15:32:48 +0500 Subject: [PATCH] Adjust test for insertBatch --- tests/CommandTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CommandTest.php b/tests/CommandTest.php index 84beb70fa..8744451d1 100644 --- a/tests/CommandTest.php +++ b/tests/CommandTest.php @@ -110,9 +110,9 @@ public function testBooleanValuesBatchInsert(): void $db = $this->getConnection(true); $command = $db->createCommand(); - $command->insertBatch('{{bool_values}}', [[true], [false]], ['bool_col']); + $batchCommand = $command->insertBatch('{{bool_values}}', [[true], [false]], ['bool_col']); - $this->assertSame(2, $command->execute()); + $this->assertSame(2, $batchCommand->execute()); $command->setSql( <<