Skip to content

Commit 3581b20

Browse files
author
Hayder Sharhan
committed
MAGETWO-56868: CLONE - Cannot save a product with images for the second time
- Static & unit test fixes.
1 parent 287fea6 commit 3581b20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Catalog/Test/Unit/Model/ProductTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ protected function setUp()
389389
->getMock();
390390
$this->collectionFactoryMock = $this->getMockBuilder(\Magento\Framework\Data\CollectionFactory::class)
391391
->disableOriginalConstructor()
392+
->setMethods(['create'])
392393
->getMock();
393394
$this->mediaConfig = $this->getMock(\Magento\Catalog\Model\Product\Media\Config::class, [], [], '', false);
394395
$this->objectManagerHelper = new ObjectManagerHelper($this);

dev/tests/functional/tests/app/Magento/Config/Test/Block/System/Config/AdminForm.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
* Copyright © 2016 Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
namespace Magento\Config\Test\Block\System\Config;
87

98
use Magento\Mtf\Block\Form;
109
use Magento\Mtf\Client\Locator;
1110

12-
/**
11+
/**
1312
* Admin Security form in admin configurations.
1413
*
1514
* Locate Admin account sharing settings, see if its visible

0 commit comments

Comments
 (0)