Skip to content

Commit 987558c

Browse files
ACPT-1666
Fixing GroupExcludedWebsiteCache for GraphQlCustomerMutationsTest::testResetPassword
1 parent 3aacfbf commit 987558c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

app/code/Magento/Customer/Model/Cache/GroupExcludedWebsiteCache.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616

1717
namespace Magento\Customer\Model\Cache;
1818

19-
class GroupExcludedWebsiteCache
19+
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
20+
21+
class GroupExcludedWebsiteCache implements ResetAfterRequestInterface
2022
{
2123
/**
2224
* @var array
@@ -63,4 +65,12 @@ public function invalidate()
6365
{
6466
$this->customerGroupExcludedWebsite = [];
6567
}
68+
69+
/**
70+
* @inheritDoc
71+
*/
72+
public function _resetState(): void
73+
{
74+
$this->invalidate();
75+
}
6676
}

dev/tests/integration/framework/Magento/TestFramework/ApplicationStateComparator/_files/state-skip-list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'*' => [
1111
// phpcs:disable Generic.Files.LineLength.TooLong
1212
// list of the latest failures started
13-
Magento\Store\Model\ResourceModel\Group\Collection\FetchStrategy::class => null,
13+
// Magento\Store\Model\ResourceModel\Group\Collection\FetchStrategy::class => null,
1414
Magento\Framework\ObjectManager\Resetter\WeakMapSorter::class => null,
1515
Magento\Sales\Api\Data\ShippingAssignmentInterfaceFactory::class => null,
1616
Magento\Sales\Model\Order\ShippingBuilderFactory::class => null,

0 commit comments

Comments
 (0)