We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81725aa commit 19fe0dfCopy full SHA for 19fe0df
app/code/Magento/Newsletter/Test/Unit/Model/SubscriberTest.php
@@ -187,6 +187,12 @@ public function testUpdateSubscription()
187
$customerDataMock->expects($this->once())->method('getStoreId')->willReturn('store_id');
188
$customerDataMock->expects($this->once())->method('getEmail')->willReturn('email');
189
190
+ $storeModel = $this->getMockBuilder(\Magento\Store\Model\Store::class)
191
+ ->disableOriginalConstructor()
192
+ ->setMethods(['getId'])
193
+ ->getMock();
194
+ $this->storeManager->expects($this->any())->method('getStore')->willReturn($storeModel);
195
+
196
$this->assertEquals($this->subscriber, $this->subscriber->updateSubscription($customerId));
197
}
198
0 commit comments