Skip to content

Commit 0284bda

Browse files
author
Oleksandr Osadchyi
committed
MAGETWO-61873: Customer email Enumeration through frontend login
1 parent 4abdd5d commit 0284bda

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

app/code/Magento/Customer/Test/Unit/Controller/Account/EditPostTest.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Magento\Customer\Model\EmailNotificationInterface;
1313
use Magento\Customer\Model\Session;
1414
use Magento\Framework\App\Action\Context;
15-
use Magento\Framework\App\Config\ScopeConfigInterface;
1615
use Magento\Framework\App\Request\Http;
1716
use Magento\Framework\Controller\Result\Redirect;
1817
use Magento\Framework\Controller\Result\RedirectFactory;
@@ -127,13 +126,6 @@ protected function setUp()
127126
->disableOriginalConstructor()
128127
->getMock();
129128

130-
$scopeConfigMock = $this->getMockBuilder(ScopeConfigInterface::class)
131-
->disableOriginalConstructor()
132-
->getMock();
133-
$scopeConfigMock->expects($this->any())
134-
->method('getValue')
135-
->willReturn('test@host.com');
136-
137129
$this->authenticationMock = $this->getMockBuilder(AuthenticationInterface::class)
138130
->disableOriginalConstructor()
139131
->getMock();
@@ -157,11 +149,7 @@ protected function setUp()
157149
'emailNotification',
158150
$this->emailNotification
159151
);
160-
$objectManager->setBackwardCompatibleProperty(
161-
$this->model,
162-
'scopeConfig',
163-
$scopeConfigMock
164-
);
152+
165153
$objectManager->setBackwardCompatibleProperty(
166154
$this->model,
167155
'authentication',

0 commit comments

Comments
 (0)