@@ -94,7 +94,7 @@ public function testGetStoreConfig(): void
94
94
$ responseDefaultStore = $ this ->graphQlQueryWithResponseHeaders ($ query );
95
95
$ this ->assertArrayHasKey (CacheIdCalculator::CACHE_ID_HEADER , $ responseDefaultStore ['headers ' ]);
96
96
$ defaultStoreCacheId = $ responseDefaultStore ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
97
- // Verify we obtain a cache MISS the 1st time
97
+ // Verify we obtain a cache MISS at the 1st time
98
98
$ defaultStoreResponse = $ this ->assertCacheMissAndReturnResponse (
99
99
$ query ,
100
100
[CacheIdCalculator::CACHE_ID_HEADER => $ defaultStoreCacheId ]
@@ -104,7 +104,7 @@ public function testGetStoreConfig(): void
104
104
$ this ->assertEquals ($ defaultStoreId , $ defaultStoreResponseResult ['id ' ]);
105
105
$ this ->assertEquals ($ defaultStoreCode , $ defaultStoreResponseResult ['code ' ]);
106
106
$ this ->assertEquals ($ defaultLocale , $ defaultStoreResponseResult ['locale ' ]);
107
- // Verify we obtain a cache HIT the 2nd time
107
+ // Verify we obtain a cache HIT at the 2nd time
108
108
$ defaultStoreResponseHit = $ this ->assertCacheHitAndReturnResponse (
109
109
$ query ,
110
110
[CacheIdCalculator::CACHE_ID_HEADER => $ defaultStoreCacheId ]
@@ -121,7 +121,7 @@ public function testGetStoreConfig(): void
121
121
$ this ->assertArrayHasKey (CacheIdCalculator::CACHE_ID_HEADER , $ responseTestStore ['headers ' ]);
122
122
$ testStoreCacheId = $ responseTestStore ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
123
123
$ this ->assertNotEquals ($ testStoreCacheId , $ defaultStoreCacheId );
124
- // Verify we obtain a cache MISS the 1st time
124
+ // Verify we obtain a cache MISS at the 1st time
125
125
$ testStoreResponse = $ this ->assertCacheMissAndReturnResponse (
126
126
$ query ,
127
127
[
@@ -133,7 +133,7 @@ public function testGetStoreConfig(): void
133
133
$ testStoreResponseResult = $ testStoreResponse ['body ' ]['storeConfig ' ];
134
134
$ this ->assertEquals ($ testStoreCode , $ testStoreResponseResult ['code ' ]);
135
135
$ this ->assertEquals ($ defaultLocale , $ testStoreResponseResult ['locale ' ]);
136
- // Verify we obtain a cache HIT the 2nd time
136
+ // Verify we obtain a cache HIT at the 2nd time
137
137
$ testStoreResponseHit = $ this ->assertCacheHitAndReturnResponse (
138
138
$ query ,
139
139
[
@@ -165,7 +165,7 @@ public function testCachePurgedWithStoreScopeConfigChange(): void
165
165
$ responseDefaultStore = $ this ->graphQlQueryWithResponseHeaders ($ query );
166
166
$ this ->assertArrayHasKey (CacheIdCalculator::CACHE_ID_HEADER , $ responseDefaultStore ['headers ' ]);
167
167
$ defaultStoreCacheId = $ responseDefaultStore ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
168
- // Verify we obtain a cache MISS the 1st time
168
+ // Verify we obtain a cache MISS at the 1st time
169
169
$ defaultStoreResponse = $ this ->assertCacheMissAndReturnResponse (
170
170
$ query ,
171
171
[CacheIdCalculator::CACHE_ID_HEADER => $ defaultStoreCacheId ]
@@ -182,7 +182,7 @@ public function testCachePurgedWithStoreScopeConfigChange(): void
182
182
$ this ->assertArrayHasKey (CacheIdCalculator::CACHE_ID_HEADER , $ responseTestStore ['headers ' ]);
183
183
$ testStoreCacheId = $ responseTestStore ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
184
184
$ this ->assertNotEquals ($ testStoreCacheId , $ defaultStoreCacheId );
185
- // Verify we obtain a cache MISS the 1st time
185
+ // Verify we obtain a cache MISS at the 1st time
186
186
$ testStoreResponse = $ this ->assertCacheMissAndReturnResponse (
187
187
$ query ,
188
188
[
@@ -201,19 +201,19 @@ public function testCachePurgedWithStoreScopeConfigChange(): void
201
201
$ this ->setConfig ($ localeConfigPath , $ newLocale , ScopeInterface::SCOPE_STORE , $ testStoreCode );
202
202
203
203
// Query default store config after test store config change
204
- // Verify we obtain a cache HIT the 2nd time, the cache is not purged
205
- $ defaultStoreResponseHit2 = $ this ->assertCacheHitAndReturnResponse (
204
+ // Verify we obtain a cache HIT at the 2nd time, the cache is not purged
205
+ $ defaultStoreResponseHit = $ this ->assertCacheHitAndReturnResponse (
206
206
$ query ,
207
207
[CacheIdCalculator::CACHE_ID_HEADER => $ defaultStoreCacheId ]
208
208
);
209
- $ this ->assertArrayHasKey ('storeConfig ' , $ defaultStoreResponseHit2 ['body ' ]);
210
- $ defaultStoreResponseHit2Result = $ defaultStoreResponseHit2 ['body ' ]['storeConfig ' ];
211
- $ this ->assertEquals ($ defaultStoreId , $ defaultStoreResponseHit2Result ['id ' ]);
212
- $ this ->assertEquals ($ defaultStoreCode , $ defaultStoreResponseHit2Result ['code ' ]);
213
- $ this ->assertEquals ($ defaultLocale , $ defaultStoreResponseHit2Result ['locale ' ]);
209
+ $ this ->assertArrayHasKey ('storeConfig ' , $ defaultStoreResponseHit ['body ' ]);
210
+ $ defaultStoreResponseHitResult = $ defaultStoreResponseHit ['body ' ]['storeConfig ' ];
211
+ $ this ->assertEquals ($ defaultStoreId , $ defaultStoreResponseHitResult ['id ' ]);
212
+ $ this ->assertEquals ($ defaultStoreCode , $ defaultStoreResponseHitResult ['code ' ]);
213
+ $ this ->assertEquals ($ defaultLocale , $ defaultStoreResponseHitResult ['locale ' ]);
214
214
215
215
// Query test store config after test store config change
216
- // Verify we obtain a cache MISS the 2nd time, the cache is purged
216
+ // Verify we obtain a cache MISS at the 2nd time, the cache is purged
217
217
$ testStoreResponseMiss = $ this ->assertCacheMissAndReturnResponse (
218
218
$ query ,
219
219
[
@@ -225,18 +225,18 @@ public function testCachePurgedWithStoreScopeConfigChange(): void
225
225
$ testStoreResponseMissResult = $ testStoreResponseMiss ['body ' ]['storeConfig ' ];
226
226
$ this ->assertEquals ($ testStoreCode , $ testStoreResponseMissResult ['code ' ]);
227
227
$ this ->assertEquals ($ newLocale , $ testStoreResponseMissResult ['locale ' ]);
228
- // Verify we obtain a cache HIT the 3rd time
229
- $ testStoreResponseHit2 = $ this ->assertCacheHitAndReturnResponse (
228
+ // Verify we obtain a cache HIT at the 3rd time
229
+ $ testStoreResponseHit = $ this ->assertCacheHitAndReturnResponse (
230
230
$ query ,
231
231
[
232
232
CacheIdCalculator::CACHE_ID_HEADER => $ testStoreCacheId ,
233
233
'Store ' => $ testStoreCode
234
234
]
235
235
);
236
- $ this ->assertArrayHasKey ('storeConfig ' , $ testStoreResponseHit2 ['body ' ]);
237
- $ testStoreResponseHit2Result = $ testStoreResponseHit2 ['body ' ]['storeConfig ' ];
238
- $ this ->assertEquals ($ testStoreCode , $ testStoreResponseHit2Result ['code ' ]);
239
- $ this ->assertEquals ($ newLocale , $ testStoreResponseHit2Result ['locale ' ]);
236
+ $ this ->assertArrayHasKey ('storeConfig ' , $ testStoreResponseHit ['body ' ]);
237
+ $ testStoreResponseHitResult = $ testStoreResponseHit ['body ' ]['storeConfig ' ];
238
+ $ this ->assertEquals ($ testStoreCode , $ testStoreResponseHitResult ['code ' ]);
239
+ $ this ->assertEquals ($ newLocale , $ testStoreResponseHitResult ['locale ' ]);
240
240
}
241
241
242
242
/**
0 commit comments