File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/PageCache Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 ]
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments