@@ -365,7 +365,10 @@ public function testUrlRewriteCleansCacheOnChange(string $requestPath)
365
365
// renaming entity request path and validating that API will not return cached response
366
366
$ urlRewrite ->setRequestPath ('test ' . $ requestPath );
367
367
$ urlRewriteResourceModel ->save ($ urlRewrite );
368
- $ apiResponse = $ this ->assertCacheMissAndReturnResponse ($ query ($ requestPath ), [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
368
+ $ apiResponse = $ this ->assertCacheMissAndReturnResponse (
369
+ $ query ($ requestPath ),
370
+ [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]
371
+ );
369
372
$ this ->assertNull ($ apiResponse ['body ' ]['route ' ]);
370
373
371
374
// rolling back changes
@@ -399,7 +402,6 @@ public function urlRewriteEntitiesDataProvider(): array
399
402
*/
400
403
public function testUrlRewriteCleansCacheForCustomRewrites ()
401
404
{
402
-
403
405
/** @var UrlRewriteResourceModel $urlRewriteResourceModel */
404
406
$ urlRewriteResourceModel = $ this ->objectManager ->create (UrlRewriteResourceModel::class);
405
407
$ storeId = 1 ;
@@ -457,10 +459,16 @@ public function testUrlRewriteCleansCacheForCustomRewrites()
457
459
$ cacheId = $ apiResponse ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
458
460
459
461
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
460
- $ this ->assertCacheMissAndReturnResponse ($ query ($ customRequestPath ), [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
462
+ $ this ->assertCacheMissAndReturnResponse (
463
+ $ query ($ customRequestPath ),
464
+ [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]
465
+ );
461
466
462
467
// Verify we obtain a cache HIT the second time around for this X-Magento-Cache-Id
463
- $ this ->assertCacheHitAndReturnResponse ($ query ($ customRequestPath ), [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
468
+ $ this ->assertCacheHitAndReturnResponse (
469
+ $ query ($ customRequestPath ),
470
+ [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]
471
+ );
464
472
465
473
// confirm that API returns non-cached response for the second custom rewrite
466
474
$ apiResponse = $ this ->graphQlQueryWithResponseHeaders ($ query ($ customSecondRequestPath ));
@@ -469,10 +477,16 @@ public function testUrlRewriteCleansCacheForCustomRewrites()
469
477
$ cacheId = $ apiResponse ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
470
478
471
479
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
472
- $ this ->assertCacheMissAndReturnResponse ($ query ($ customSecondRequestPath ), [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
480
+ $ this ->assertCacheMissAndReturnResponse (
481
+ $ query ($ customSecondRequestPath ),
482
+ [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]
483
+ );
473
484
474
485
// Verify we obtain a cache HIT the second time around for this X-Magento-Cache-Id
475
- $ this ->assertCacheHitAndReturnResponse ($ query ($ customSecondRequestPath ), [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
486
+ $ this ->assertCacheHitAndReturnResponse (
487
+ $ query ($ customSecondRequestPath ),
488
+ [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]
489
+ );
476
490
}
477
491
478
492
$ urlRewriteResourceModel ->delete ($ secondUrlRewriteModel );
0 commit comments