@@ -46,7 +46,7 @@ public function testProductUrlResolver()
46
46
$ productSku = 'p002 ' ;
47
47
/** @var ProductRepositoryInterface $productRepository */
48
48
$ productRepository = $ this ->objectManager ->get (ProductRepositoryInterface::class);
49
- $ product = $ productRepository ->get ($ productSku , false , null , true );
49
+ $ productRepository ->get ($ productSku , false , null , true );
50
50
51
51
$ routeQuery = $ this ->getRouteQuery ($ this ->getProductUrlKey ($ productSku ));
52
52
$ response = $ this ->graphQlQueryWithResponseHeaders ($ routeQuery );
@@ -71,7 +71,7 @@ public function testProductUrlWithNonSeoFriendlyUrlInput()
71
71
$ productSku = 'p002 ' ;
72
72
/** @var ProductRepositoryInterface $productRepository */
73
73
$ productRepository = $ this ->objectManager ->get (ProductRepositoryInterface::class);
74
- $ product = $ productRepository ->get ($ productSku , false , null , true );
74
+ $ productRepository ->get ($ productSku , false , null , true );
75
75
76
76
$ actualUrls = $ this ->getProductUrlRewriteData ($ productSku );
77
77
$ nonSeoFriendlyPath = $ actualUrls ->getTargetPath ();
@@ -100,7 +100,7 @@ public function testProductUrlRewriteResolver()
100
100
/** @var ProductRepositoryInterface $productRepository */
101
101
$ productRepository = $ this ->objectManager ->get (ProductRepositoryInterface::class);
102
102
$ product = $ productRepository ->get ($ productSku , false , null , true );
103
- $ initialUrlPath = $ this ->getProductUrlKey ($ productSku );
103
+ $ this ->getProductUrlKey ($ productSku );
104
104
$ renamedKey = 'simple-product-in-stock-new ' ;
105
105
$ suffix = '.html ' ;
106
106
$ product ->setUrlKey ($ renamedKey )->setData ('save_rewrites_history ' , true )->save ();
@@ -471,10 +471,10 @@ public function testUrlRewriteCleansCacheForCustomRewrites()
471
471
$ cacheId = $ apiResponse ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
472
472
473
473
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
474
- $ this ->assertCacheMiss ($ query ($ customRequestPath ), [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
474
+ $ this ->assertCacheMiss ($ query ($ customSecondRequestPath ), [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
475
475
476
476
// Verify we obtain a cache HIT the second time around for this X-Magento-Cache-Id
477
- $ this ->assertCacheHit ($ query ($ customRequestPath ), [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
477
+ $ this ->assertCacheHit ($ query ($ customSecondRequestPath ), [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
478
478
}
479
479
480
480
$ urlRewriteResourceModel ->delete ($ secondUrlRewriteModel );
@@ -485,7 +485,7 @@ public function testUrlRewriteCleansCacheForCustomRewrites()
485
485
$ query ($ customRequestPath ),
486
486
[CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]
487
487
);
488
- $ this ->assertNull ($ apiResponse ['route ' ]);
488
+ $ this ->assertNull ($ apiResponse ['body ' ][ ' route ' ]);
489
489
}
490
490
491
491
/**
0 commit comments