Skip to content

Commit 80941c1

Browse files
author
Leonid Poluyanov
committed
MAGETWO-39764: Create pull request for S24 results
1 parent c701e0d commit 80941c1

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

setup/src/Magento/Setup/Test/Unit/Model/SampleDataTest.php

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,24 @@ class SampleDataTest extends \PHPUnit_Framework_TestCase
3535

3636
protected function setUp()
3737
{
38-
$this->objectManagerInterface = $this->getMockForAbstractClass('Magento\Framework\ObjectManagerInterface');
39-
$this->loggerInterface = $this->getMockForAbstractClass('Magento\Framework\Setup\LoggerInterface');
38+
$this->objectManagerInterface = $this->getMock(
39+
'Magento\Framework\ObjectManagerInterface',
40+
[
41+
'get',
42+
'create',
43+
'configure'
44+
],
45+
[],
46+
'',
47+
false
48+
);
49+
$this->loggerInterface = $this->getMock('Magento\Framework\Setup\LoggerInterface');
4050
$this->directoryList = $this->getMock('Magento\Framework\App\Filesystem\DirectoryList', [], [], '', false);
4151
$this->sampleDataInstall = new SampleData($this->directoryList);
4252
}
4353

4454
public function testInstall()
4555
{
46-
if (!class_exists('Magento\SampleData\Model\Logger')) {
47-
$this->markTestSkipped('Sample Data module does not exist');
48-
}
4956
$areaCode = 'adminhtml';
5057
$userName = 'admin';
5158
$modules = ['module_1', 'module_2'];

0 commit comments

Comments
 (0)