-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge forwardport of #12035 to 2.3-develop branch
Applied pull request patch https://github.com/magento/magento2/pull/12035.patch (created by @sbaixauli) based on commit(s): 1. 65000d8 2. 81725aa 3. 19fe0df 4. 2e2f66b 5. 194ba57 Fixed GitHub Issues in 2.3-develop branch: - #10014: Newsletter subscriptions status not isolated between multi stores (reported by @mikelevy300)
- Loading branch information
Showing
5 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -347,6 +347,7 @@ public function testSaveActionExistingCustomerUnsubscribeNewsletter() | |
'email' => '[email protected]', | ||
'firstname' => 'test firstname', | ||
'lastname' => 'test lastname', | ||
'sendemail_store_id' => 1 | ||
], | ||
'subscription' => '0' | ||
]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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('[email protected]') | ||
|