Skip to content

Commit 263fbc9

Browse files
committed
BUG#AC-2797: GraphQL Customer Newsletter Subscriptions are inconsistent in multi website setups
1 parent 775f3f0 commit 263fbc9

File tree

3 files changed

+5
-99
lines changed

3 files changed

+5
-99
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/SubscriptionStatusTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace Magento\GraphQl\Customer;
99

10+
use Exception;
1011
use Magento\Framework\Exception\AuthenticationException;
1112
use Magento\Integration\Api\CustomerTokenServiceInterface;
1213
use Magento\Newsletter\Model\SubscriberFactory;
@@ -151,14 +152,13 @@ public function testUnsubscribeCustomer()
151152
}
152153

153154
/**
154-
* @magentoApiDataFixture Magento/Store/_files/multiple_websites_with_store_groups_stores.php
155-
* @magentoApiDataFixture Magento/Customer/_files/create_customer_for_second_website.php
156155
* @magentoConfigFixture default_store customer/account_share/scope 0
156+
* @magentoApiDataFixture Magento/Customer/_files/customer_for_second_website_with_address.php
157157
*/
158158
public function testSubscriptionStatusInMultiWebsiteSetup(): void
159159
{
160-
$currentEmail = 'axl@rose.com';
161-
$currentPassword = 'axl@123';
160+
$currentEmail = 'customer_second_ws_with_addr@example.com';
161+
$currentPassword = 'Apassword1';
162162

163163
$query = <<<QUERY
164164
mutation {
@@ -174,7 +174,7 @@ public function testSubscriptionStatusInMultiWebsiteSetup(): void
174174
}
175175
QUERY;
176176
$headers = [
177-
'Store' => 'third_store_view',
177+
'Store' => 'default',
178178
'Authorization' => sprintf(
179179
'Bearer %s',
180180
$this->customerTokenService->createCustomerAccessToken($currentEmail, $currentPassword)

dev/tests/integration/testsuite/Magento/Customer/_files/create_customer_for_second_website.php

Lines changed: 0 additions & 60 deletions
This file was deleted.

dev/tests/integration/testsuite/Magento/Customer/_files/create_customer_for_second_website_rollback.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)