File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
setup/src/Magento/Setup/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,6 @@ public function testInstall(array $request, array $logMessages): void
366
366
$ cacheManagerMock = $ this ->createMock (Manager::class);
367
367
$ cacheManagerMock ->expects ($ this ->any ())->method ('getAvailableTypes ' )->willReturn (['foo ' , 'bar ' ]);
368
368
$ cacheManagerMock ->expects ($ this ->exactly (3 ))->method ('setEnabled ' )
369
- // ->with(['foo', 'bar'], false)
370
369
->willReturn (['foo ' , 'bar ' ]);
371
370
$ cacheManagerMock ->expects ($ this ->exactly (3 ))->method ('clean ' );
372
371
$ cacheManagerMock ->expects ($ this ->exactly (3 ))->method ('getStatus ' )->willReturn (['foo ' => 1 , 'bar ' => 1 ]);
@@ -381,8 +380,15 @@ public function testInstall(array $request, array $logMessages): void
381
380
382
381
$ registryMock = $ this ->createMock (Registry::class);
383
382
384
- $ this ->setupFactoryMock ->expects ($ this ->atLeastOnce ())->method ('create ' )->with ($ resourceMock )->willReturn ($ setupMock );
385
- $ this ->dataSetupFactoryMock ->expects ($ this ->atLeastOnce ())->method ('create ' )->willReturn ($ dataSetupMock );
383
+ $ this ->setupFactoryMock ->expects ($ this ->atLeastOnce ())
384
+ ->method ('create ' )
385
+ ->with ($ resourceMock )
386
+ ->willReturn ($ setupMock );
387
+
388
+ $ this ->dataSetupFactoryMock ->expects ($ this ->atLeastOnce ())
389
+ ->method ('create ' )
390
+ ->willReturn ($ dataSetupMock );
391
+
386
392
$ this ->objectManager ->expects ($ this ->any ())
387
393
->method ('create ' )
388
394
->will ($ this ->returnValueMap ([
You can’t perform that action at this time.
0 commit comments