File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
app/code/Magento/Deploy/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,9 @@ public function testEnableProductionMode()
154
154
State::PARAM_MODE => State::MODE_DEVELOPER ,
155
155
],
156
156
];
157
+ $ this ->configProvider ->expects ($ this ->any ())
158
+ ->method ('getConfigs ' )
159
+ ->willReturn ([]);
157
160
$ this ->writerMock ->expects ($ this ->once ())
158
161
->method ("saveConfig " )
159
162
->willReturnCallback (function ($ data ) use (&$ dataStorage ) {
@@ -187,6 +190,12 @@ public function testEnableDeveloperModeOnFail()
187
190
State::PARAM_MODE => State::MODE_DEVELOPER ,
188
191
],
189
192
];
193
+ $ this ->readerMock ->expects ($ this ->any ())
194
+ ->method ('load ' )
195
+ ->willReturn ([State::PARAM_MODE => State::MODE_DEVELOPER ]);
196
+ $ this ->configProvider ->expects ($ this ->any ())
197
+ ->method ('getConfigs ' )
198
+ ->willReturn ([]);
190
199
$ this ->writerMock ->expects ($ this ->exactly (2 ))
191
200
->method ("saveConfig " )
192
201
->withConsecutive (
You can’t perform that action at this time.
0 commit comments