From 46bf4573de17aca03dddc3a106fb052349ba299c Mon Sep 17 00:00:00 2001 From: DevSviat Date: Sun, 25 Oct 2026 19:46:36 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20=D0=BD=D0=B5=D0=B9=D1=82=D1=80=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D1=96=20=D0=BF=D1=80=D0=B8=D0=BA=D0=BB=D0=B0?= =?UTF-8?q?=D0=B4=D0=B8=20=D0=B7=D0=B0=D0=BC=D1=96=D1=81=D1=82=D1=8C=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B0=D0=BB=D1=8C=D0=BD=D0=B8=D1=85=20=D0=B4=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=85=20=D0=BC=D0=B0=D0=B3=D0=B0=D0=B7=D0=B8=D0=BD?= =?UTF-8?q?=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/BackorderCountsTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/BackorderCountsTest.php b/tests/BackorderCountsTest.php index 8069eb2..3fd6ab8 100644 --- a/tests/BackorderCountsTest.php +++ b/tests/BackorderCountsTest.php @@ -18,12 +18,12 @@ class BackorderCountsTest extends TestCase public function testOneGroupedQueryForAllBrands(): void { $counts = $this->counts([ - (object) ['brand_id' => '1', 'variants' => '1301'], - (object) ['brand_id' => '9', 'variants' => '646'], + (object) ['brand_id' => '3', 'variants' => '120'], + (object) ['brand_id' => '5', 'variants' => '45'], (object) ['brand_id' => '0', 'variants' => '4'], ]); - $this->assertSame([1 => 1301, 9 => 646, 0 => 4], $counts->variantsByBrand()); + $this->assertSame([3 => 120, 5 => 45, 0 => 4], $counts->variantsByBrand()); $this->assertCount(1, $this->queries); $sql = str_replace('`', '', preg_replace('/\s+/', ' ', $this->queries[0]));