From c3570bc854242f7fef3cc697095afc89222f40ea Mon Sep 17 00:00:00 2001 From: DevSviat Date: Sun, 25 Oct 2026 19:46:30 +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/ProductsHelperCacheTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/ProductsHelperCacheTest.php b/tests/ProductsHelperCacheTest.php index 092df68..efb9eec 100644 --- a/tests/ProductsHelperCacheTest.php +++ b/tests/ProductsHelperCacheTest.php @@ -39,20 +39,20 @@ public function testGetListWarmsRouteAliasesOnCacheHit(): void { $stub = new StubRedisCacheService(); $stub->cachedValue = [ - 7 => (object) ['id' => 7, 'url' => 'delonghi-as00009450', 'slug_url' => 'coffee-machines/delonghi-as00009450'], - 9 => (object) ['id' => 9, 'url' => 'krups-ms-624571', 'slug_url' => 'coffee-machines/krups-ms-624571'], + 7 => (object) ['id' => 7, 'url' => 'product-alpha-100', 'slug_url' => 'gadgets/product-alpha-100'], + 9 => (object) ['id' => 9, 'url' => 'product-beta-200', 'slug_url' => 'gadgets/product-beta-200'], ]; $result = $this->makeHelper($stub)->getList(['category_id' => 18]); $this->assertSame($stub->cachedValue, $result); $this->assertSame( - 'coffee-machines/delonghi-as00009450', - ProductRoute::getUrlSlugAlias('delonghi-as00009450') + 'gadgets/product-alpha-100', + ProductRoute::getUrlSlugAlias('product-alpha-100') ); $this->assertSame( - 'coffee-machines/krups-ms-624571', - ProductRoute::getUrlSlugAlias('krups-ms-624571') + 'gadgets/product-beta-200', + ProductRoute::getUrlSlugAlias('product-beta-200') ); }