File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
app/code/Magento/StoreGraphQl/Model/Resolver/Stores
dev/tests/api-functional/testsuite/Magento/GraphQl/Store Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function getIdentities(array $resolvedData): array
3838 }
3939 if (!empty ($ resolvedData )) {
4040 $ websiteId = $ resolvedData [0 ]['website_id ' ];
41- $ currentStoreGroupId = $ this ->getCurrectStoreGroupId ($ resolvedData );
41+ $ currentStoreGroupId = $ this ->getCurrentStoreGroupId ($ resolvedData );
4242 $ groupTag = $ currentStoreGroupId ? 'group_ ' . $ currentStoreGroupId : '' ;
4343 $ ids [] = sprintf ('%s_%s ' , StoreConfigIdentity::CACHE_TAG , 'website_ ' . $ websiteId . $ groupTag );
4444 }
@@ -47,12 +47,12 @@ public function getIdentities(array $resolvedData): array
4747 }
4848
4949 /**
50- * Return current store group id if it is certain that useCurrentGroup is true in the querry
50+ * Return current store group id if it is certain that useCurrentGroup is true in the query
5151 *
5252 * @param array $resolvedData
5353 * @return string|int|null
5454 */
55- private function getCurrectStoreGroupId (array $ resolvedData )
55+ private function getCurrentStoreGroupId (array $ resolvedData )
5656 {
5757 $ storeGroupCodes = array_unique (array_column ($ resolvedData , 'store_group_code ' ));
5858 if (count ($ storeGroupCodes ) == 1 ) {
Original file line number Diff line number Diff line change @@ -2204,6 +2204,7 @@ public function testCachePurgedWithNewStoreCreatedInOneStoreGroupWebsite(): void
22042204 $ registry ->unregister ('isSecureArea ' );
22052205 $ registry ->register ('isSecureArea ' , true );
22062206 $ store ->delete ();
2207+ $ storeGroup ->delete ();
22072208 $ registry ->unregister ('isSecureArea ' );
22082209 $ registry ->register ('isSecureArea ' , false );
22092210 }
You can’t perform that action at this time.
0 commit comments