We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c00303f commit dda3e02Copy full SHA for dda3e02
app/code/Magento/Deploy/Test/Unit/Console/CommandListTest.php
@@ -40,12 +40,19 @@ protected function setUp()
40
41
public function testGetCommands()
42
{
43
+ $configImportCommand = $this->getMockBuilder(ConfigImportCommand::class)
44
+ ->disableOriginalConstructor()
45
+ ->getMock();
46
+
47
$this->objectManagerMock->expects($this->once())
48
->method('get')
- ->withConsecutive([
- ConfigImportCommand::class,
49
+ ->willReturnMap([
50
+ [ConfigImportCommand::class, $configImportCommand],
51
]);
52
- $this->model->getCommands();
53
+ $this->assertSame(
54
+ [$configImportCommand],
55
+ $this->model->getCommands()
56
+ );
57
}
58
0 commit comments