Skip to content

Commit 4a2ad1a

Browse files
committed
MAGETWO-31369: [South] Unit and Integration tests coverage
1 parent f182ac3 commit 4a2ad1a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

dev/tests/unit/testsuite/Magento/Theme/Model/Config/CustomizationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class CustomizationTest extends \PHPUnit_Framework_TestCase
1515
{
1616
/**
17-
* @var \Magento\Store\Model\StoreManagerInterface|\PHPUnit_Framework_MockObject_MockObject
17+
* @var \Magento\Framework\Store\StoreManagerInterface|\PHPUnit_Framework_MockObject_MockObject
1818
*/
1919
protected $storeManager;
2020

@@ -40,7 +40,7 @@ class CustomizationTest extends \PHPUnit_Framework_TestCase
4040

4141
protected function setUp()
4242
{
43-
$this->storeManager = $this->getMockBuilder('Magento\Store\Model\StoreManagerInterface')->getMock();
43+
$this->storeManager = $this->getMockBuilder('Magento\Framework\Store\StoreManagerInterface')->getMock();
4444
$this->designPackage = $this->getMockBuilder('Magento\Framework\View\DesignInterface')->getMock();
4545
$this->themeCollection = $this->getMockBuilder('Magento\Theme\Model\Resource\Theme\Collection')
4646
->disableOriginalConstructor()

dev/tests/unit/testsuite/Magento/Theme/Model/CopyServiceTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,20 +115,20 @@ protected function setUp()
115115
'sort_order' => 20,
116116
]
117117
);
118-
$this->_sourceFiles = [$sourceFileOne, $sourceFileTwo];
119-
$this->_sourceTheme = $this->getMock(
118+
$this->sourceFiles = [$sourceFileOne, $sourceFileTwo];
119+
$this->sourceTheme = $this->getMock(
120120
'Magento\Theme\Model\Theme',
121121
['__wakeup', 'getCustomization'],
122122
[],
123123
'',
124124
false
125125
);
126126

127-
$this->_targetFiles = [
127+
$this->targetFiles = [
128128
$this->getMock('Magento\Theme\Model\Theme\File', ['__wakeup', 'delete'], [], '', false),
129129
$this->getMock('Magento\Theme\Model\Theme\File', ['__wakeup', 'delete'], [], '', false),
130130
];
131-
$this->_targetTheme = $this->getMock(
131+
$this->targetTheme = $this->getMock(
132132
'Magento\Theme\Model\Theme',
133133
['__wakeup', 'getCustomization'],
134134
[],

dev/tests/unit/testsuite/Magento/Theme/Model/Favicon/FaviconTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Magento\Backend\Model\Config\Backend\Image\Favicon as ImageFavicon;
99
use Magento\Framework\App\Filesystem\DirectoryList;
1010
use Magento\Framework\UrlInterface;
11-
use Magento\Store\Model\ScopeInterface;
11+
use Magento\Framework\Store\ScopeInterface;
1212

1313
class FaviconTest extends \PHPUnit_Framework_TestCase
1414
{
@@ -42,12 +42,12 @@ class FaviconTest extends \PHPUnit_Framework_TestCase
4242
*/
4343
public function setUp()
4444
{
45-
$storeManager = $this->getMockBuilder('Magento\Store\Model\StoreManagerInterface')->getMock();
45+
$storeManager = $this->getMockBuilder('Magento\Framework\Store\StoreManagerInterface')->getMock();
4646
$this->store = $this->getMockBuilder('Magento\Store\Model\Store')->disableOriginalConstructor()->getMock();
4747
$storeManager->expects($this->any())
4848
->method('getStore')
4949
->willReturn($this->store);
50-
/** @var \Magento\Store\Model\StoreManagerInterface $storeManager */
50+
/** @var \Magento\Framework\Store\StoreManagerInterface $storeManager */
5151
$this->scopeManager = $this->getMockBuilder('Magento\Framework\App\Config\ScopeConfigInterface')->getMock();
5252
$this->fileStorageDatabase = $this->getMockBuilder('Magento\Core\Helper\File\Storage\Database')
5353
->disableOriginalConstructor()

0 commit comments

Comments
 (0)