Skip to content

Commit 21488ae

Browse files
committed
MAGETWO-33654: Unable to save newsletter subscription information of customer in backend
1 parent b2bf20b commit 21488ae

File tree

3 files changed

+1004
-1
lines changed

3 files changed

+1004
-1
lines changed

app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function _extractData(
7474
\Magento\Customer\Model\Metadata\Form $metadataForm = null
7575
) {
7676
if ($metadataForm === null) {
77-
$metadataForm = $this->_objectManager->get('Magento\Customer\Model\Metadata\FormFactory')->create(
77+
$metadataForm = $this->_formFactory->create(
7878
$entityType,
7979
$formCode,
8080
[],

app/code/Magento/Customer/Test/Unit/Block/Adminhtml/Edit/Tab/NewsletterTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,32 @@ class NewsletterTest extends \PHPUnit_Framework_TestCase
1313
* @var \Magento\Customer\Block\Adminhtml\Edit\Tab\Newsletter
1414
*/
1515
protected $model;
16+
1617
/**
1718
* @var \PHPUnit_Framework_MockObject_MockObject
1819
*/
1920
protected $contextMock;
21+
2022
/**
2123
* @var \PHPUnit_Framework_MockObject_MockObject
2224
*/
2325
protected $registryMock;
26+
2427
/**
2528
* @var \PHPUnit_Framework_MockObject_MockObject
2629
*/
2730
protected $formFactoryMock;
31+
2832
/**
2933
* @var \PHPUnit_Framework_MockObject_MockObject
3034
*/
3135
protected $subscriberFactoryMock;
36+
3237
/**
3338
* @var \PHPUnit_Framework_MockObject_MockObject
3439
*/
3540
protected $accountManagementMock;
41+
3642
/**
3743
* @var \PHPUnit_Framework_MockObject_MockObject
3844
*/

0 commit comments

Comments
 (0)