Skip to content

Commit 4dbc0bf

Browse files
committed
B2B-2530: Unskip GraphQL cache tests skipped due to DEVOPS-4924
- Fixed test code comments
1 parent 49fbdda commit 4dbc0bf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function testCacheInvalidationForCategoriesWithProduct()
102102
// Cache-debug header should be a MISS for product 2 during first load
103103
$responseMissSecondProduct = $this->graphQlQueryWithResponseHeaders($product2Query);
104104
$cacheIdOfSecondProduct = $responseMissSecondProduct['headers'][CacheIdCalculator::CACHE_ID_HEADER];
105-
// Verify we obtain a cache MISS the first time we search the cache using this X-Magento-Cache-Id
105+
// Verify we obtain a cache MISS the first time for product 2
106106
$this->assertCacheMissAndReturnResponse(
107107
$product2Query,
108108
[CacheIdCalculator::CACHE_ID_HEADER => $cacheIdOfSecondProduct]
@@ -126,7 +126,7 @@ public function testCacheInvalidationForCategoriesWithProduct()
126126
);
127127

128128
// Cache-debug header responses for product 2 and should be a HIT for product 2
129-
// Verify we obtain a cache HIT on the second product after update
129+
// Verify we obtain a cache HIT on the second product after product 1 update
130130
$this->assertCacheHitAndReturnResponse(
131131
$product2Query,
132132
[CacheIdCalculator::CACHE_ID_HEADER => $cacheIdOfSecondProduct]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function testCacheIsInvalidatedOnBlockUpdate()
100100

101101
// Verify we obtain a cache MISS on the fixture block query
102102
// after the content update on the fixture block
103-
$fixtureBlockMissResponse = $this->assertCacheMissAndReturnResponse(
103+
$this->assertCacheMissAndReturnResponse(
104104
$fixtureBlockQuery,
105105
[CacheIdCalculator::CACHE_ID_HEADER => $cacheIdOfFixtureBlock]
106106
);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ public function testCacheIsInvalidatedOnPageUpdate()
101101
[CacheIdCalculator::CACHE_ID_HEADER => $cacheIdPageBlankResponse]
102102
);
103103

104-
//cache-debug should be a HIT on second request for page100 query
104+
//cache-debug should be a HIT on second request for page100
105105
$this->assertCacheHitAndReturnResponse(
106106
$page100Query,
107107
[CacheIdCalculator::CACHE_ID_HEADER => $cacheIdPage100Response]
108108
);
109-
//cache-debug should be a HIT on second request for page blank query
109+
//cache-debug should be a HIT on second request for page blank
110110
$this->assertCacheHitAndReturnResponse(
111111
$pageBlankQuery,
112112
[CacheIdCalculator::CACHE_ID_HEADER => $cacheIdPageBlankResponse]

0 commit comments

Comments
 (0)