Skip to content

Commit dda3e02

Browse files
MAGETWO-71890: Magento fails with deploymentConfig present on new install
1 parent c00303f commit dda3e02

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

app/code/Magento/Deploy/Test/Unit/Console/CommandListTest.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,19 @@ protected function setUp()
4040

4141
public function testGetCommands()
4242
{
43+
$configImportCommand = $this->getMockBuilder(ConfigImportCommand::class)
44+
->disableOriginalConstructor()
45+
->getMock();
46+
4347
$this->objectManagerMock->expects($this->once())
4448
->method('get')
45-
->withConsecutive([
46-
ConfigImportCommand::class,
49+
->willReturnMap([
50+
[ConfigImportCommand::class, $configImportCommand],
4751
]);
4852

49-
$this->model->getCommands();
53+
$this->assertSame(
54+
[$configImportCommand],
55+
$this->model->getCommands()
56+
);
5057
}
5158
}

0 commit comments

Comments
 (0)