File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/PageCache Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ public function testCacheIsInvalidatedOnBlockUpdate()
105
105
);
106
106
107
107
//cache-debug should be a HIT after update the block on enabled block query
108
- // Verify we obtain a cache HIT the second time on the updated enabled block
108
+ // Verify we obtain a cache HIT on the updated enabled block
109
109
$ this ->assertCacheHitAndReturnResponse (
110
110
$ enabledBlockQuery ,
111
111
[CacheIdCalculator::CACHE_ID_HEADER => $ cacheIdOfEnabledBlock ]
Original file line number Diff line number Diff line change @@ -124,15 +124,14 @@ public function testCacheIsInvalidatedOnPageUpdate()
124
124
$ pageBlankQuery ,
125
125
[CacheIdCalculator::CACHE_ID_HEADER => $ cacheIdPageBlankResponse ]
126
126
);
127
-
128
- $ page100ResponseHitAfterUpdate = $ this ->graphQlQueryWithResponseHeaders ($ page100Query );
127
+
129
128
$ this ->assertCacheHitAndReturnResponse (
130
129
$ page100Query ,
131
130
[CacheIdCalculator::CACHE_ID_HEADER => $ cacheIdPage100Response ]
132
131
);
133
132
134
133
//updated page data should be correct
135
- $ this ->assertNotEmpty ($ page100ResponseHitAfterUpdate ['body ' ]);
134
+ $ this ->assertNotEmpty ($ pageBlankResponseMissAfterUpdate ['body ' ]);
136
135
$ pageData = $ pageBlankResponseMissAfterUpdate ['body ' ]['cmsPage ' ];
137
136
$ this ->assertArrayNotHasKey ('errors ' , $ pageBlankResponseMissAfterUpdate ['body ' ]);
138
137
$ this ->assertEquals ('Cms Page Design Blank ' , $ pageData ['title ' ]);
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ public function testCacheIsInvalidatedForUrlResolver()
137
137
$ urlResolverQuery ,
138
138
[CacheIdCalculator::CACHE_ID_HEADER => $ cacheIdForUrlResolver ]
139
139
);
140
- // Verify we obtain a cache HIT the second time
140
+ // Verify we obtain a cache HIT the second time
141
141
$ this ->assertCacheHitAndReturnResponse (
142
142
$ urlResolverQuery ,
143
143
[CacheIdCalculator::CACHE_ID_HEADER => $ cacheIdForUrlResolver ]
You can’t perform that action at this time.
0 commit comments