@@ -94,10 +94,10 @@ public function testCacheTagForCategoriesWithProduct()
94
94
$ categoryQuery = $ this ->getCategoryQuery ();
95
95
96
96
// cache-debug header value should be a MISS when category is loaded first time
97
- $ responseMissOnCategoryQuery = $ this ->graphQlQueryWithResponseHeaders ($ categoryQuery , $ categoryQueryVariables );
97
+ $ responseMissOnCategoryQuery = $ this ->graphQlQueryWithResponseHeaders ($ categoryQuery , [ $ categoryQueryVariables] );
98
98
$ cacheId = $ responseMissOnCategoryQuery ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
99
99
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
100
- $ this ->assertCacheMissAndReturnResponse ($ categoryQuery , [ $ categoryQueryVariables , CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
100
+ $ this ->assertCacheMissAndReturnResponse ($ categoryQuery , [ CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
101
101
102
102
// Cache-debug header should be a MISS for product 1 on first request
103
103
$ responseFirstProduct = $ this ->graphQlQueryWithResponseHeaders ($ product1Query );
@@ -114,12 +114,12 @@ public function testCacheTagForCategoriesWithProduct()
114
114
// cache-debug header value should be MISS after updating product1 and reloading the Category
115
115
$ responseMissCategoryAfterUpdate = $ this ->graphQlQueryWithResponseHeaders (
116
116
$ categoryQuery ,
117
- $ categoryQueryVariables
117
+ [ $ categoryQueryVariables]
118
118
);
119
119
$ this ->assertArrayHasKey (CacheIdCalculator::CACHE_ID_HEADER , $ responseMissCategoryAfterUpdate ['headers ' ]);
120
120
$ cacheId = $ responseMissCategoryAfterUpdate ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
121
121
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
122
- $ this ->assertCacheMissAndReturnResponse ($ categoryQuery , [$ categoryQueryVariables , CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
122
+ $ this ->assertCacheMissAndReturnResponse ($ categoryQuery , [CacheIdCalculator::CACHE_ID_HEADER => $ cacheId ]);
123
123
124
124
// cache-debug should be a MISS for product 1 after it is updated - cache invalidation
125
125
$ responseMissFirstProductAfterUpdate = $ this ->graphQlQueryWithResponseHeaders ($ product1Query );
0 commit comments