Skip to content

Commit 49a4dd0

Browse files
committed
B2B-2530: Unskip GraphQL cache tests skipped due to DEVOPS-4924
- Adding satic fixes
1 parent 4304d87 commit 49a4dd0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/PageCache/CacheTagTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ public function testCacheTagForCategoriesWithProduct()
9494
$categoryQuery = $this->getCategoryQuery();
9595

9696
// 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]);
9898
$cacheId = $responseMissOnCategoryQuery['headers'][CacheIdCalculator::CACHE_ID_HEADER];
9999
// 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]);
101101

102102
// Cache-debug header should be a MISS for product 1 on first request
103103
$responseFirstProduct = $this->graphQlQueryWithResponseHeaders($product1Query);
@@ -114,12 +114,12 @@ public function testCacheTagForCategoriesWithProduct()
114114
// cache-debug header value should be MISS after updating product1 and reloading the Category
115115
$responseMissCategoryAfterUpdate = $this->graphQlQueryWithResponseHeaders(
116116
$categoryQuery,
117-
$categoryQueryVariables
117+
[$categoryQueryVariables]
118118
);
119119
$this->assertArrayHasKey(CacheIdCalculator::CACHE_ID_HEADER, $responseMissCategoryAfterUpdate['headers']);
120120
$cacheId = $responseMissCategoryAfterUpdate['headers'][CacheIdCalculator::CACHE_ID_HEADER];
121121
// 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]);
123123

124124
// cache-debug should be a MISS for product 1 after it is updated - cache invalidation
125125
$responseMissFirstProductAfterUpdate = $this->graphQlQueryWithResponseHeaders($product1Query);

0 commit comments

Comments
 (0)