@@ -95,16 +95,9 @@ public function testCacheTagForCategoriesWithProduct()
95
95
96
96
// cache-debug header value should be a MISS when category is loaded first time
97
97
$ responseMissOnCategoryQuery = $ this ->graphQlQueryWithResponseHeaders ($ categoryQuery , $ categoryQueryVariables );
98
- print_r ("Debug value Miss CacheTest testCacheIsUsedOnSecondRequest \n" );
99
- $ json_response = json_encode ($ responseMissOnCategoryQuery , JSON_PRETTY_PRINT );
100
- print_r ($ json_response );
101
- print_r ("\n end \n" );
102
- print_r ("Debug value End Miss of testCacheIsUsedOnSecondRequest \n" );
103
98
$ cacheId = $ responseMissOnCategoryQuery ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
104
- print_r ("\n CacheId start \n" );
105
- print_r ($ cacheId ."\n" );
106
99
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
107
- $ this ->assertCacheMissAndReturnResponse ($ categoryQuery , [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
100
+ $ this ->assertCacheMissAndReturnResponse ($ categoryQuery , [$ categoryQueryVariables , CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
108
101
109
102
// Cache-debug header should be a MISS for product 1 on first request
110
103
$ responseFirstProduct = $ this ->graphQlQueryWithResponseHeaders ($ product1Query );
@@ -125,14 +118,6 @@ public function testCacheTagForCategoriesWithProduct()
125
118
);
126
119
$ this ->assertArrayHasKey (CacheIdCalculator::CACHE_ID_HEADER , $ responseMissCategoryAfterUpdate ['headers ' ]);
127
120
$ cacheId = $ responseMissCategoryAfterUpdate ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
128
- print_r ("Debug value Miss CacheTest testCacheIsUsedOnSecondRequest \n" );
129
- $ json_response = json_encode ($ responseMissOnCategoryQuery , JSON_PRETTY_PRINT );
130
- print_r ($ json_response );
131
- print_r ("\n end \n" );
132
- print_r ("Debug value End Miss of testCacheIsUsedOnSecondRequest \n" );
133
- print_r ("\n CacheId 2 start \n" );
134
- print_r ($ cacheId ."\n" );
135
-
136
121
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
137
122
$ this ->assertCacheMissAndReturnResponse ($ categoryQuery , [$ categoryQueryVariables , CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
138
123
0 commit comments