Skip to content

Commit

Permalink
Update the store id attached to the second customer when dealing with…
Browse files Browse the repository at this point in the history
… new newsletter subscription mapping
  • Loading branch information
dmanners committed Nov 10, 2017
1 parent 19fe0df commit 2e2f66b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

$subscriber = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
->create(\Magento\Newsletter\Model\Subscriber::class);
$subscriber->setStoreId($otherStore)
$subscriber->setStoreId($currentStore)
// Intentionally setting ID to 0 instead of 2 to test fallback mechanism in Subscriber model
->setCustomerId(0)
->setSubscriberEmail('customer_two@example.com')
Expand Down

0 comments on commit 2e2f66b

Please sign in to comment.