File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
CatalogImportExport/Model/Import
Catalog/Test/Unit/Block/Product/View Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Catalog \Test \Unit \Block \Product \View ;
7
7
8
+ /**
9
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
10
+ */
8
11
class GalleryTest extends \PHPUnit \Framework \TestCase
9
12
{
10
13
/**
Original file line number Diff line number Diff line change 20
20
use Magento \ImportExport \Model \Import \ErrorProcessing \ProcessingError ;
21
21
use Magento \ImportExport \Model \Import \ErrorProcessing \ProcessingErrorAggregatorInterface ;
22
22
use Magento \Store \Model \Store ;
23
+ use Magento \Framework \App \ObjectManager ;
23
24
24
25
/**
25
26
* Import entity product model
@@ -830,12 +831,9 @@ public function __construct(
830
831
$ this ->scopeConfig = $ scopeConfig ;
831
832
$ this ->productUrl = $ productUrl ;
832
833
$ this ->dateAttrCodes = array_merge ($ this ->dateAttrCodes , $ dateAttrCodes );
833
- $ this ->catalogConfig = $ catalogConfig ?: \Magento \Framework \App \ObjectManager::getInstance ()
834
- ->get (CatalogConfig::class);
835
- $ this ->imageTypeProcessor = $ imageTypeProcessor ?: \Magento \Framework \App \ObjectManager::getInstance ()
836
- ->get (ImageTypeProcessor::class);
837
- $ this ->mediaProcessor = $ mediaProcessor ?: \Magento \Framework \App \ObjectManager::getInstance ()
838
- ->get (MediaGalleryProcessor::class);
834
+ $ this ->catalogConfig = $ catalogConfig ?: ObjectManager::getInstance ()->get (CatalogConfig::class);
835
+ $ this ->imageTypeProcessor = $ imageTypeProcessor ?: ObjectManager::getInstance ()->get (ImageTypeProcessor::class);
836
+ $ this ->mediaProcessor = $ mediaProcessor ?: ObjectManager::getInstance ()->get (MediaGalleryProcessor::class);
839
837
840
838
parent ::__construct (
841
839
$ jsonHelper ,
You can’t perform that action at this time.
0 commit comments