@@ -56,8 +56,6 @@ public function testCacheInvalidationForProducts()
5656 $ product ->setPrice (15 );
5757 $ productRepository ->save ($ product );
5858
59- $ responseAfterUpdate = $ this ->graphQlQueryWithResponseHeaders ($ query );
60- $ this ->assertArrayHasKey (CacheIdCalculator::CACHE_ID_HEADER , $ responseAfterUpdate ['headers ' ]);
6159 // Cache invalidation happens and cache header value is a MISS after product update
6260 $ this ->assertCacheMissAndReturnResponse ($ query , [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
6361 }
@@ -85,6 +83,8 @@ public function testCacheInvalidationForCategoriesWithProduct()
8583 // cache-debug header value should be a MISS when category is loaded first time
8684 $ responseMissOnCategoryQuery = $ this ->graphQlQueryWithResponseHeaders ($ categoryQuery );
8785 $ cacheIdOfCategoryQuery = $ responseMissOnCategoryQuery ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
86+ print_r ("CacheId of CategoryQuery \n" );
87+ print_r ($ cacheIdOfCategoryQuery );
8888 // Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
8989 $ this ->assertCacheMissAndReturnResponse (
9090 $ categoryQuery ,
@@ -121,6 +121,8 @@ public function testCacheInvalidationForCategoriesWithProduct()
121121 );
122122 $ cacheIdOfCategoryAfterProductUpdate =
123123 $ responseMissCategoryAfterProductUpdate ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
124+ print_r ("CacheId of CategoryQuery After update \n" );
125+ print_r ($ cacheIdOfCategoryAfterProductUpdate );
124126 // Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
125127 $ this ->assertCacheMissAndReturnResponse (
126128 $ categoryQuery ,
0 commit comments