Skip to content

Commit d437cec

Browse files
committed
#23191 Fix static tests for B2B edition, which checks tests
1 parent e05bb10 commit d437cec

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

app/code/Magento/CatalogImportExport/Test/Unit/Model/Import/Product/LinkProcessorTest.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper;
1010

11+
/**
12+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
13+
*/
1114
class LinkProcessorTest extends \PHPUnit\Framework\TestCase
1215
{
1316
/**
@@ -63,10 +66,15 @@ protected function setUp()
6366
$this->resource = $this->createMock(\Magento\Catalog\Model\ResourceModel\Product\Link::class);
6467
$this->resource->method('getMainTable')->willReturn('main_link_table');
6568

66-
$this->linkFactory = $this->createPartialMock(\Magento\Catalog\Model\ResourceModel\Product\LinkFactory::class, ['create']);
69+
$this->linkFactory = $this->createPartialMock(
70+
\Magento\Catalog\Model\ResourceModel\Product\LinkFactory::class,
71+
['create']
72+
);
6773
$this->linkFactory->method('create')->willReturn($this->resource);
6874

69-
$this->skuProcessor = $this->createMock(\Magento\CatalogImportExport\Model\Import\Product\SkuProcessor::class, []);
75+
$this->skuProcessor = $this->createMock(
76+
\Magento\CatalogImportExport\Model\Import\Product\SkuProcessor::class,
77+
);
7078
$this->logger = $this->createMock(\Psr\Log\LoggerInterface::class);
7179
}
7280

0 commit comments

Comments
 (0)