@@ -56,8 +56,6 @@ public function testCacheInvalidationForProducts()
56
56
$ product ->setPrice (15 );
57
57
$ productRepository ->save ($ product );
58
58
59
- $ responseAfterUpdate = $ this ->graphQlQueryWithResponseHeaders ($ query );
60
- $ this ->assertArrayHasKey (CacheIdCalculator::CACHE_ID_HEADER , $ responseAfterUpdate ['headers ' ]);
61
59
// Cache invalidation happens and cache header value is a MISS after product update
62
60
$ this ->assertCacheMissAndReturnResponse ($ query , [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
63
61
}
@@ -85,6 +83,8 @@ public function testCacheInvalidationForCategoriesWithProduct()
85
83
// cache-debug header value should be a MISS when category is loaded first time
86
84
$ responseMissOnCategoryQuery = $ this ->graphQlQueryWithResponseHeaders ($ categoryQuery );
87
85
$ cacheIdOfCategoryQuery = $ responseMissOnCategoryQuery ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
86
+ print_r ("CacheId of CategoryQuery \n" );
87
+ print_r ($ cacheIdOfCategoryQuery );
88
88
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
89
89
$ this ->assertCacheMissAndReturnResponse (
90
90
$ categoryQuery ,
@@ -121,6 +121,8 @@ public function testCacheInvalidationForCategoriesWithProduct()
121
121
);
122
122
$ cacheIdOfCategoryAfterProductUpdate =
123
123
$ responseMissCategoryAfterProductUpdate ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
124
+ print_r ("CacheId of CategoryQuery After update \n" );
125
+ print_r ($ cacheIdOfCategoryAfterProductUpdate );
124
126
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
125
127
$ this ->assertCacheMissAndReturnResponse (
126
128
$ categoryQuery ,
0 commit comments