Skip to content

Commit 2de4597

Browse files
author
okarpenko
committed
MAGETWO-38155: Create block for order level
1 parent 8a5fec9 commit 2de4597

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

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

Lines changed: 15 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', 'run', 'resetComposer'],
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);
@@ -45,7 +51,13 @@ function ($input, $buffer) {
4551

4652
public function testCheckDependenciesExcludeSelf()
4753
{
48-
$composerApp = $this->getMock('Composer\Console\Application', [], [], '', false);
54+
$composerApp = $this->getMock(
55+
'Composer\Console\Application',
56+
['setAutoExit', 'run', 'resetComposer'],
57+
[],
58+
'',
59+
false
60+
);
4961
$directoryList = $this->getMock('Magento\Framework\App\Filesystem\DirectoryList', [], [], '', false);
5062
$directoryList->expects($this->exactly(3))->method('getRoot');
5163
$composerApp->expects($this->once())->method('setAutoExit')->with(false);
@@ -70,6 +82,7 @@ function ($input, $buffer) {
7082
$buffer->writeln($output);
7183
}
7284
);
85+
$composerApp->expects($this->atLeastOnce())->method('resetComposer');
7386

7487
$dependencyChecker = new DependencyChecker($composerApp, $directoryList);
7588
$expected = [

0 commit comments

Comments
 (0)