Skip to content

Commit 78a269f

Browse files
committed
B2B-2530: Unskip GraphQL cache tests skipped due to DEVOPS-4924
- Adding the changes fix
1 parent ee687b5 commit 78a269f

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

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

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,9 @@ public function testCacheTagForCategoriesWithProduct()
9595

9696
// cache-debug header value should be a MISS when category is loaded first time
9797
$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");
10398
$cacheId = $responseMissOnCategoryQuery['headers'][CacheIdCalculator::CACHE_ID_HEADER];
104-
print_r("\n CacheId start \n");
105-
print_r($cacheId ."\n");
10699
// 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]);
108101

109102
// Cache-debug header should be a MISS for product 1 on first request
110103
$responseFirstProduct = $this->graphQlQueryWithResponseHeaders($product1Query);
@@ -125,14 +118,6 @@ public function testCacheTagForCategoriesWithProduct()
125118
);
126119
$this->assertArrayHasKey(CacheIdCalculator::CACHE_ID_HEADER, $responseMissCategoryAfterUpdate['headers']);
127120
$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-
136121
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
137122
$this->assertCacheMissAndReturnResponse($categoryQuery, [$categoryQueryVariables, CacheIdCalculator::CACHE_ID_HEADER => $cacheId]);
138123

0 commit comments

Comments
 (0)