File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
app/code/Magento/Config/Test/Unit/Model/Config Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,9 @@ protected function setUp()
125
125
);
126
126
}
127
127
128
+ /**
129
+ * @SuppressWarnings(PHPMD.UnusedLocalVariable)
130
+ */
128
131
public function testImport ()
129
132
{
130
133
$ data = [];
@@ -145,8 +148,17 @@ public function testImport()
145
148
->willReturn ('oldScope ' );
146
149
$ this ->stateMock ->expects ($ this ->once ())
147
150
->method ('emulateAreaCode ' )
148
- ->with (Area::AREA_ADMINHTML , $ this ->anything ());
149
- $ this ->scopeMock ->expects ($ this ->once ())
151
+ ->with (Area::AREA_ADMINHTML , $ this ->anything ())
152
+ ->willReturnCallback (function ($ area , $ function ) {
153
+ return $ function ();
154
+ });
155
+ $ this ->saveProcessorMock ->expects ($ this ->once ())
156
+ ->method ('process ' )
157
+ ->with ([]);
158
+ $ this ->scopeMock ->expects ($ this ->at (1 ))
159
+ ->method ('setCurrentScope ' )
160
+ ->with (Area::AREA_ADMINHTML );
161
+ $ this ->scopeMock ->expects ($ this ->at (2 ))
150
162
->method ('setCurrentScope ' )
151
163
->with ('oldScope ' );
152
164
$ this ->flagManagerMock ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments