Skip to content

Commit 99e4512

Browse files
committed
MAGETWO-33654: Unable to save newsletter subscription information of customer in backend
1 parent f7085e4 commit 99e4512

File tree

2 files changed

+3
-0
lines changed
  • app/code/Magento/Customer/Test/Unit/Controller/Adminhtml/Index
  • dev/tests/integration/testsuite/Magento/Customer/Controller/Adminhtml

2 files changed

+3
-0
lines changed

app/code/Magento/Customer/Test/Unit/Controller/Adminhtml/Index/SaveTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
use Magento\Framework\Controller\Result\Redirect;
1010

1111
/**
12+
* @SuppressWarnings(PHPMD.TooManyFields)
13+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1214
* @covers \Magento\Customer\Controller\Adminhtml\Index\Save
1315
* @TODO: Add coverage code with addresses logic
1416
*/

dev/tests/integration/testsuite/Magento/Customer/Controller/Adminhtml/IndexTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ public function testSaveActionExistingCustomerUnsubscribeNewsletter()
330330

331331
$post = [
332332
'customer' => ['entity_id' => $customerId],
333+
'subscription' => 'false'
333334
];
334335
$this->getRequest()->setPostValue($post);
335336
$this->getRequest()->setParam('id', 1);

0 commit comments

Comments
 (0)