Skip to content

Commit ca1de66

Browse files
committed
MAGETWO-55357: Portdown MAGETWO-53777 down to M2.1.x branch
1 parent 00c1839 commit ca1de66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup/src/Magento/Setup/Test/Unit/Console/Command/UpgradeCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ class UpgradeCommandTest extends \PHPUnit_Framework_TestCase
1414
public function testExecute()
1515
{
1616
$installerFactory = $this->getMock('Magento\Setup\Model\InstallerFactory', [], [], '', false);
17+
$objectManagerProvider = $this->getMock('\Magento\Setup\Model\ObjectManagerProvider', [], [], '', false);
1718
$installer = $this->getMock('Magento\Setup\Model\Installer', [], [], '', false);
1819
$installer->expects($this->at(0))->method('updateModulesSequence');
1920
$installer->expects($this->at(1))->method('installSchema');
2021
$installer->expects($this->at(2))->method('installDataFixtures');
2122
$installerFactory->expects($this->once())->method('create')->willReturn($installer);
22-
$commandTester = new CommandTester(new UpgradeCommand($installerFactory));
23+
$commandTester = new CommandTester(new UpgradeCommand($installerFactory, $objectManagerProvider));
2324
$this->assertSame(Cli::RETURN_SUCCESS, $commandTester->execute([]));
2425
}
2526
}

0 commit comments

Comments
 (0)