Skip to content

Commit 3e5534e

Browse files
committed
AC-2797:GraphQL Customer Newsletter Subscriptions are inconsistent in multi website setups - Fixed unit test failures
1 parent ac204ea commit 3e5534e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/CustomerGraphQl/Test/Unit/Model/Resolver/IsSubscribedTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,17 @@ protected function setUp(): void
9898

9999
$this->contextExtensionMock = $this->getMockBuilder(ContextExtensionInterface::class)
100100
->disableOriginalConstructor()
101-
->onlyMethods(['getStore'])
101+
->setMethods(['getStore'])
102102
->getMockForAbstractClass();
103103

104104
$this->customerMock = $this->getMockBuilder(CustomerInterface::class)
105105
->disableOriginalConstructor()
106-
->onlyMethods(['getId'])
106+
->setMethods(['getId'])
107107
->getMockForAbstractClass();
108108

109109
$this->storeMock = $this->getMockBuilder(StoreInterface::class)
110110
->disableOriginalConstructor()
111-
->onlyMethods(['getWebsiteId'])
111+
->setMethods(['getWebsiteId'])
112112
->getMockForAbstractClass();
113113

114114
$this->fieldMock = $this->getMockBuilder(Field::class)

0 commit comments

Comments
 (0)