@@ -83,15 +83,17 @@ public function testGetStoreConfig(): void
83
83
84
84
// Query test store config
85
85
$ testStoreCode = 'test ' ;
86
- $ headerMap ['Store ' ] = $ testStoreCode ;
87
- $ responseTestStore = $ this ->graphQlQueryWithResponseHeaders ($ query , [], '' , $ headerMap );
86
+ $ responseTestStore = $ this ->graphQlQueryWithResponseHeaders ($ query , [], '' , ['Store ' => $ testStoreCode ]);
88
87
$ this ->assertArrayHasKey (CacheIdCalculator::CACHE_ID_HEADER , $ responseTestStore ['headers ' ]);
89
88
$ testStoreCacheId = $ responseTestStore ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
90
89
$ this ->assertNotEquals ($ testStoreCacheId , $ defaultStoreCacheId );
91
90
// Verify we obtain a cache MISS the first time
92
91
$ testStoreResponse = $ this ->assertCacheMissAndReturnResponse (
93
92
$ query ,
94
- [CacheIdCalculator::CACHE_ID_HEADER => $ testStoreCacheId ]
93
+ [
94
+ CacheIdCalculator::CACHE_ID_HEADER => $ testStoreCacheId ,
95
+ 'Store ' => $ testStoreCode
96
+ ]
95
97
);
96
98
$ this ->assertArrayHasKey ('storeConfig ' , $ testStoreResponse ['body ' ]);
97
99
$ testStoreResponseResult = $ testStoreResponse ['body ' ]['storeConfig ' ];
@@ -100,7 +102,10 @@ public function testGetStoreConfig(): void
100
102
// Verify we obtain a cache HIT the second time
101
103
$ testStoreResponseHit = $ this ->assertCacheHitAndReturnResponse (
102
104
$ query ,
103
- [CacheIdCalculator::CACHE_ID_HEADER => $ testStoreCacheId ]
105
+ [
106
+ CacheIdCalculator::CACHE_ID_HEADER => $ testStoreCacheId ,
107
+ 'Store ' => $ testStoreCode
108
+ ]
104
109
);
105
110
$ this ->assertArrayHasKey ('storeConfig ' , $ testStoreResponseHit ['body ' ]);
106
111
$ testStoreResponseHitResult = $ testStoreResponseHit ['body ' ]['storeConfig ' ];
@@ -127,7 +132,10 @@ public function testGetStoreConfig(): void
127
132
// Verify we obtain a cache MISS the 3rd time
128
133
$ testStoreResponseMiss = $ this ->assertCacheMissAndReturnResponse (
129
134
$ query ,
130
- [CacheIdCalculator::CACHE_ID_HEADER => $ testStoreCacheId ]
135
+ [
136
+ CacheIdCalculator::CACHE_ID_HEADER => $ testStoreCacheId ,
137
+ 'Store ' => $ testStoreCode
138
+ ]
131
139
);
132
140
$ this ->assertArrayHasKey ('storeConfig ' , $ testStoreResponseMiss ['body ' ]);
133
141
$ testStoreResponseMissResult = $ testStoreResponseMiss ['body ' ]['storeConfig ' ];
@@ -136,7 +144,10 @@ public function testGetStoreConfig(): void
136
144
// Verify we obtain a cache HIT the 4th time
137
145
$ testStoreResponseHit2 = $ this ->assertCacheHitAndReturnResponse (
138
146
$ query ,
139
- [CacheIdCalculator::CACHE_ID_HEADER => $ testStoreCacheId ]
147
+ [
148
+ CacheIdCalculator::CACHE_ID_HEADER => $ testStoreCacheId ,
149
+ 'Store ' => $ testStoreCode
150
+ ]
140
151
);
141
152
$ this ->assertArrayHasKey ('storeConfig ' , $ testStoreResponseHit2 ['body ' ]);
142
153
$ testStoreResponseHit2Result = $ testStoreResponseHit2 ['body ' ]['storeConfig ' ];
0 commit comments