Skip to content

Commit 981df7b

Browse files
committed
Fixed static test
1 parent d95a65a commit 981df7b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

setup/src/Magento/Setup/Test/Unit/Model/InstallerTest.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@ public function testInstall(array $request, array $logMessages): void
366366
$cacheManagerMock = $this->createMock(Manager::class);
367367
$cacheManagerMock->expects($this->any())->method('getAvailableTypes')->willReturn(['foo', 'bar']);
368368
$cacheManagerMock->expects($this->exactly(3))->method('setEnabled')
369-
// ->with(['foo', 'bar'], false)
370369
->willReturn(['foo', 'bar']);
371370
$cacheManagerMock->expects($this->exactly(3))->method('clean');
372371
$cacheManagerMock->expects($this->exactly(3))->method('getStatus')->willReturn(['foo' => 1, 'bar' => 1]);
@@ -381,8 +380,15 @@ public function testInstall(array $request, array $logMessages): void
381380

382381
$registryMock = $this->createMock(Registry::class);
383382

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+
386392
$this->objectManager->expects($this->any())
387393
->method('create')
388394
->will($this->returnValueMap([

0 commit comments

Comments
 (0)