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()
102
102
// Cache-debug header should be a MISS for product 2 during first load
103
103
$ responseMissSecondProduct = $ this ->graphQlQueryWithResponseHeaders ($ product2Query );
104
104
$ 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
106
106
$ this ->assertCacheMissAndReturnResponse (
107
107
$ product2Query ,
108
108
[CacheIdCalculator::CACHE_ID_HEADER => $ cacheIdOfSecondProduct ]
@@ -126,7 +126,7 @@ public function testCacheInvalidationForCategoriesWithProduct()
126
126
);
127
127
128
128
// 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
130
130
$ this ->assertCacheHitAndReturnResponse (
131
131
$ product2Query ,
132
132
[CacheIdCalculator::CACHE_ID_HEADER => $ cacheIdOfSecondProduct ]
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public function testCacheIsInvalidatedOnBlockUpdate()
100
100
101
101
// Verify we obtain a cache MISS on the fixture block query
102
102
// after the content update on the fixture block
103
- $ fixtureBlockMissResponse = $ this ->assertCacheMissAndReturnResponse (
103
+ $ this ->assertCacheMissAndReturnResponse (
104
104
$ fixtureBlockQuery ,
105
105
[CacheIdCalculator::CACHE_ID_HEADER => $ cacheIdOfFixtureBlock ]
106
106
);
Original file line number Diff line number Diff line change @@ -101,12 +101,12 @@ public function testCacheIsInvalidatedOnPageUpdate()
101
101
[CacheIdCalculator::CACHE_ID_HEADER => $ cacheIdPageBlankResponse ]
102
102
);
103
103
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
105
105
$ this ->assertCacheHitAndReturnResponse (
106
106
$ page100Query ,
107
107
[CacheIdCalculator::CACHE_ID_HEADER => $ cacheIdPage100Response ]
108
108
);
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
110
110
$ this ->assertCacheHitAndReturnResponse (
111
111
$ pageBlankQuery ,
112
112
[CacheIdCalculator::CACHE_ID_HEADER => $ cacheIdPageBlankResponse ]
You can’t perform that action at this time.
0 commit comments