Skip to content

Commit 7033a94

Browse files
committed
MAGETWO-38686: Merge and Fix Builds
- fix unit tests
1 parent a254617 commit 7033a94

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

lib/internal/Magento/Framework/Composer/Test/Unit/DependencyCheckerTest.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ class DependencyCheckerTest extends \PHPUnit_Framework_TestCase
1111
{
1212
public function testCheckDependencies()
1313
{
14-
$composerApp = $this->getMock('Composer\Console\Application', [], [], '', false);
14+
$composerApp = $this->getMock(
15+
'Composer\Console\Application',
16+
['setAutoExit', 'resetComposer', 'run'],
17+
[],
18+
'',
19+
false
20+
);
1521
$directoryList = $this->getMock('Magento\Framework\App\Filesystem\DirectoryList', [], [], '', false);
1622
$directoryList->expects($this->exactly(2))->method('getRoot');
1723
$composerApp->expects($this->once())->method('setAutoExit')->with(false);
@@ -44,7 +50,13 @@ function ($input, $buffer) {
4450

4551
public function testCheckDependenciesExcludeSelf()
4652
{
47-
$composerApp = $this->getMock('Composer\Console\Application', [], [], '', false);
53+
$composerApp = $this->getMock(
54+
'Composer\Console\Application',
55+
['setAutoExit', 'resetComposer', 'run'],
56+
[],
57+
'',
58+
false
59+
);
4860
$directoryList = $this->getMock('Magento\Framework\App\Filesystem\DirectoryList', [], [], '', false);
4961
$directoryList->expects($this->exactly(3))->method('getRoot');
5062
$composerApp->expects($this->once())->method('setAutoExit')->with(false);

0 commit comments

Comments
 (0)