@@ -1083,7 +1083,8 @@ public function testCachePurgedAfterStoreGroupSwitchedWebsite(): void
1083
1083
$ currentStoreGroupQuery = $ this ->getQuery ('true ' );
1084
1084
$ responseDefaultStoreCurrentStoreGroup = $ this ->graphQlQueryWithResponseHeaders ($ currentStoreGroupQuery );
1085
1085
$ this ->assertArrayHasKey (CacheIdCalculator::CACHE_ID_HEADER , $ responseDefaultStoreCurrentStoreGroup ['headers ' ]);
1086
- $ defaultStoreCurrentStoreGroupCacheId = $ responseDefaultStoreCurrentStoreGroup ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
1086
+ $ defaultStoreCurrentStoreGroupCacheId =
1087
+ $ responseDefaultStoreCurrentStoreGroup ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
1087
1088
// Verify we obtain a cache MISS at the 1st time
1088
1089
$ this ->assertCacheMissAndReturnResponse (
1089
1090
$ currentStoreGroupQuery ,
@@ -1314,7 +1315,8 @@ public function testCachePurgedAfterStoreSwitchedStoreGroup(): void
1314
1315
$ currentStoreGroupQuery = $ this ->getQuery ('true ' );
1315
1316
$ responseDefaultStoreCurrentStoreGroup = $ this ->graphQlQueryWithResponseHeaders ($ currentStoreGroupQuery );
1316
1317
$ this ->assertArrayHasKey (CacheIdCalculator::CACHE_ID_HEADER , $ responseDefaultStoreCurrentStoreGroup ['headers ' ]);
1317
- $ defaultStoreCurrentStoreGroupCacheId = $ responseDefaultStoreCurrentStoreGroup ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
1318
+ $ defaultStoreCurrentStoreGroupCacheId =
1319
+ $ responseDefaultStoreCurrentStoreGroup ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
1318
1320
// Verify we obtain a cache MISS at the 1st time
1319
1321
$ this ->assertCacheMissAndReturnResponse (
1320
1322
$ currentStoreGroupQuery ,
@@ -1414,6 +1416,9 @@ public function testCachePurgedAfterStoreSwitchedStoreGroup(): void
1414
1416
/** @var Store $store */
1415
1417
$ store = $ this ->objectManager ->create (Store::class);
1416
1418
$ store ->load ($ secondStoreCode , 'code ' );
1419
+ $ store ->setStoreGroupId ($ storeGroup ->getId ());
1420
+ $ store ->setWebsiteId ($ storeGroup ->getWebsiteId ());
1421
+ $ store ->save ();
1417
1422
1418
1423
// Query available stores of default store's website
1419
1424
// after second store switched from second store group to main_website_store store group
0 commit comments