This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree 1 file changed +3
-1
lines changed
setup/src/Magento/Setup/Test/Unit/Model 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -267,6 +267,7 @@ public function testInstall()
267
267
->method ('setAreaCode ' )
268
268
->with (\Magento \Framework \App \Area::AREA_GLOBAL );
269
269
$ moduleResource = $ this ->createMock (\Magento \Framework \Module \ModuleResource::class);
270
+ $ registry = $ this ->createMock (\Magento \Framework \Registry::class);
270
271
$ this ->setupFactory ->expects ($ this ->atLeastOnce ())->method ('create ' )->willReturn ($ setup );
271
272
$ this ->dataSetupFactory ->expects ($ this ->atLeastOnce ())->method ('create ' )->willReturn ($ dataSetup );
272
273
$ this ->objectManager ->expects ($ this ->any ())
@@ -281,7 +282,8 @@ public function testInstall()
281
282
->will ($ this ->returnValueMap ([
282
283
[\Magento \Framework \App \State::class, $ appState ],
283
284
[\Magento \Framework \App \Cache \Manager::class, $ cacheManager ],
284
- [\Magento \Framework \Module \ModuleResource::class, [], $ moduleResource ]
285
+ [\Magento \Framework \Module \ModuleResource::class, [], $ moduleResource ],
286
+ [\Magento \Framework \Registry::class, $ registry ]
285
287
]));
286
288
$ this ->adminFactory ->expects ($ this ->once ())->method ('create ' )->willReturn (
287
289
$ this ->createMock (\Magento \Setup \Model \AdminAccount::class)
You can’t perform that action at this time.
0 commit comments