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
38
38
}
39
39
if (!empty ($ resolvedData )) {
40
40
$ websiteId = $ resolvedData [0 ]['website_id ' ];
41
- $ currentStoreGroupId = $ this ->getCurrectStoreGroupId ($ resolvedData );
41
+ $ currentStoreGroupId = $ this ->getCurrentStoreGroupId ($ resolvedData );
42
42
$ groupTag = $ currentStoreGroupId ? 'group_ ' . $ currentStoreGroupId : '' ;
43
43
$ ids [] = sprintf ('%s_%s ' , StoreConfigIdentity::CACHE_TAG , 'website_ ' . $ websiteId . $ groupTag );
44
44
}
@@ -47,12 +47,12 @@ public function getIdentities(array $resolvedData): array
47
47
}
48
48
49
49
/**
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
51
51
*
52
52
* @param array $resolvedData
53
53
* @return string|int|null
54
54
*/
55
- private function getCurrectStoreGroupId (array $ resolvedData )
55
+ private function getCurrentStoreGroupId (array $ resolvedData )
56
56
{
57
57
$ storeGroupCodes = array_unique (array_column ($ resolvedData , 'store_group_code ' ));
58
58
if (count ($ storeGroupCodes ) == 1 ) {
Original file line number Diff line number Diff line change @@ -2204,6 +2204,7 @@ public function testCachePurgedWithNewStoreCreatedInOneStoreGroupWebsite(): void
2204
2204
$ registry ->unregister ('isSecureArea ' );
2205
2205
$ registry ->register ('isSecureArea ' , true );
2206
2206
$ store ->delete ();
2207
+ $ storeGroup ->delete ();
2207
2208
$ registry ->unregister ('isSecureArea ' );
2208
2209
$ registry ->register ('isSecureArea ' , false );
2209
2210
}
You can’t perform that action at this time.
0 commit comments