Skip to content

Commit c5b6438

Browse files
author
Ivan Gavryshko
committed
MAGETWO-39647: autoload error after running setup:di:compile
- changes according to CR
1 parent d67e6cb commit c5b6438

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dev/tests/integration/testsuite/Magento/Framework/Composer/ComposerInformationTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ComposerInformationTest extends \PHPUnit_Framework_TestCase
2929
/**
3030
* @var BufferIoFactory|\PHPUnit_Framework_MockObject_MockObject
3131
*/
32-
private $bufferIoFactory;
32+
private $bufferIoFactoryMock;
3333

3434
public function setUp()
3535
{
@@ -40,8 +40,8 @@ public function setUp()
4040
->method('getDirectoryRead')
4141
->will($this->returnValue($this->directoryReadMock));
4242
$this->ioMock = $this->getMock('Composer\IO\BufferIO', [], [], '', false);
43-
$this->bufferIoFactory = $this->getMock('Magento\Framework\Composer\BufferIoFactory', [], [], '', false);
44-
$this->bufferIoFactory->expects($this->any())->method('create')->willReturn($this->ioMock);
43+
$this->bufferIoFactoryMock = $this->getMock('Magento\Framework\Composer\BufferIoFactory', [], [], '', false);
44+
$this->bufferIoFactoryMock->expects($this->any())->method('create')->willReturn($this->ioMock);
4545
}
4646

4747
/**
@@ -70,7 +70,7 @@ private function setupDirectoryMock($composerDir)
7070
public function testGetRequiredPhpVersion($composerDir)
7171
{
7272
$this->setupDirectoryMock($composerDir);
73-
$composerInfo = new ComposerInformation($this->filesystemMock, $this->bufferIoFactory);
73+
$composerInfo = new ComposerInformation($this->filesystemMock, $this->bufferIoFactoryMock);
7474
$this->assertEquals("~5.5.0|~5.6.0", $composerInfo->getRequiredPhpVersion());
7575
}
7676

@@ -82,7 +82,7 @@ public function testGetRequiredPhpVersion($composerDir)
8282
public function testGetRequiredExtensions($composerDir)
8383
{
8484
$this->setupDirectoryMock($composerDir);
85-
$composerInfo = new ComposerInformation($this->filesystemMock, $this->bufferIoFactory);
85+
$composerInfo = new ComposerInformation($this->filesystemMock, $this->bufferIoFactoryMock);
8686
$expectedExtensions = ['ctype', 'gd', 'spl', 'dom', 'simplexml', 'mcrypt', 'hash', 'curl', 'iconv', 'intl'];
8787

8888
$actualRequiredExtensions = $composerInfo->getRequiredExtensions();
@@ -99,7 +99,7 @@ public function testGetRequiredExtensions($composerDir)
9999
public function testGetRootRequiredPackagesAndTypes($composerDir)
100100
{
101101
$this->setupDirectoryMock($composerDir);
102-
$composerInfo = new ComposerInformation($this->filesystemMock, $this->bufferIoFactory);
102+
$composerInfo = new ComposerInformation($this->filesystemMock, $this->bufferIoFactoryMock);
103103

104104
$requiredPackagesAndTypes = $composerInfo->getRootRequiredPackageTypesByName();
105105

@@ -128,6 +128,6 @@ public function getRequiredPhpVersionDataProvider()
128128
public function testNoLock()
129129
{
130130
$this->setupDirectoryMock('notARealDirectory');
131-
new ComposerInformation($this->filesystemMock, $this->bufferIoFactory);
131+
new ComposerInformation($this->filesystemMock, $this->bufferIoFactoryMock);
132132
}
133133
}

0 commit comments

Comments
 (0)