File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
app/code/Magento/Customer/Test/Unit/Controller/Account Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 12
12
use Magento \Customer \Model \EmailNotificationInterface ;
13
13
use Magento \Customer \Model \Session ;
14
14
use Magento \Framework \App \Action \Context ;
15
- use Magento \Framework \App \Config \ScopeConfigInterface ;
16
15
use Magento \Framework \App \Request \Http ;
17
16
use Magento \Framework \Controller \Result \Redirect ;
18
17
use Magento \Framework \Controller \Result \RedirectFactory ;
@@ -127,13 +126,6 @@ protected function setUp()
127
126
->disableOriginalConstructor ()
128
127
->getMock ();
129
128
130
- $ scopeConfigMock = $ this ->getMockBuilder (ScopeConfigInterface::class)
131
- ->disableOriginalConstructor ()
132
- ->getMock ();
133
- $ scopeConfigMock ->expects ($ this ->any ())
134
- ->method ('getValue ' )
135
- ->willReturn ('test@host.com ' );
136
-
137
129
$ this ->authenticationMock = $ this ->getMockBuilder (AuthenticationInterface::class)
138
130
->disableOriginalConstructor ()
139
131
->getMock ();
@@ -157,11 +149,7 @@ protected function setUp()
157
149
'emailNotification ' ,
158
150
$ this ->emailNotification
159
151
);
160
- $ objectManager ->setBackwardCompatibleProperty (
161
- $ this ->model ,
162
- 'scopeConfig ' ,
163
- $ scopeConfigMock
164
- );
152
+
165
153
$ objectManager ->setBackwardCompatibleProperty (
166
154
$ this ->model ,
167
155
'authentication ' ,
You can’t perform that action at this time.
0 commit comments