From 42b642f78bca8199209ecefa7ddcb2c844ee9b68 Mon Sep 17 00:00:00 2001 From: gam6itko Date: Sat, 25 May 2024 16:01:03 +0300 Subject: [PATCH] mssql --- .../Integration/Issue482/AbstractTestCase.php | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/tests/ORM/Functional/Driver/Common/Integration/Issue482/AbstractTestCase.php b/tests/ORM/Functional/Driver/Common/Integration/Issue482/AbstractTestCase.php index e6dc7b5f..7ee4ad5c 100644 --- a/tests/ORM/Functional/Driver/Common/Integration/Issue482/AbstractTestCase.php +++ b/tests/ORM/Functional/Driver/Common/Integration/Issue482/AbstractTestCase.php @@ -88,32 +88,28 @@ private function makeTables(): void private function fillData(): void { - $ru = 1; - $en = 2; + $en = 1; $this->getDatabase()->table('locale')->insertMultiple( - ['id', 'code'], + ['code'], [ - [$ru, 'ru'], - [$en, 'en'], + ['en'], ], ); $this->getDatabase()->table('country')->insertMultiple( - ['id', 'name', 'code', 'is_friendly'], + ['name', 'code', 'is_friendly'], [ - [1, 'Russia', 'RUS', true], - [2, 'USA', 'USA', true], - [3, 'China', 'CHN', true], - [4, 'Boateng', 'GOAL', true], + ['Russia', 'RUS', true], + ['USA', 'USA', true], + ['China', 'CHN', true], ], ); - $t = 0; $this->getDatabase()->table('translation')->insertMultiple( - ['id', 'country_id', 'locale_id', 'title'], + ['country_id', 'locale_id', 'title'], [ - [++$t, 1, $en, 'Russia on english'], - [++$t, 2, $en, 'America on english'], - [++$t, 2, $en, 'China on english'], + [1, $en, 'Russia on english'], + [2, $en, 'America on english'], + [3, $en, 'China on english'], ], ); }