Skip to content

Commit 3f6615b

Browse files
committed
ACP2E-1345, addressed static
1 parent 8c4a0b6 commit 3f6615b

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

app/code/Magento/Bundle/Model/ResourceModel/Selection.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
*/
66
namespace Magento\Bundle\Model\ResourceModel;
77

8-
use Magento\Framework\App\ObjectManager;
98
use Magento\Catalog\Api\Data\ProductInterface;
10-
use Magento\Framework\EntityManager\MetadataPool;
9+
use Magento\Framework\App\ObjectManager;
1110
use Magento\Framework\EntityManager\EntityManager;
11+
use Magento\Framework\EntityManager\MetadataPool;
1212
use Magento\Framework\Model\ResourceModel\Db\Context;
1313

1414
/**
@@ -141,7 +141,7 @@ public function getParentIdsByChild($childId)
141141
''
142142
)->join(
143143
['e' => $this->metadataPool->getMetadata(ProductInterface::class)->getEntityTable()],
144-
'e.' . $metadata->getLinkField() . ' = ' . $this->getMainTable() . '.parent_product_id',
144+
'e.' . $metadata->getLinkField() . ' = ' . $this->getMainTable() . '.parent_product_id',
145145
['e.entity_id as parent_product_id']
146146
)->where(
147147
$this->getMainTable() . '.product_id IN(?)',
@@ -188,7 +188,8 @@ public function saveSelectionPrice($item)
188188
}
189189

190190
/**
191-
* {@inheritdoc}
191+
* @inheritdoc
192+
*
192193
* @since 100.2.0
193194
*/
194195
public function save(\Magento\Framework\Model\AbstractModel $object)

app/code/Magento/Bundle/Test/Unit/Model/ResourceModel/SelectionTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Bundle\Test\Unit\Model\ResourceModel;
78

89
use Codeception\PHPUnit\TestCase;
@@ -19,7 +20,13 @@ public function testSaveSelectionPrice()
1920
{
2021
$item = $this->getMockBuilder(Selection::class)
2122
->disableOriginalConstructor()
22-
->addMethods(['getSelectionId', 'getWebsiteId', 'getSelectionPriceType', 'getSelectionPriceValue', 'getParentProductId', 'getDefaultPriceScope'])
23+
->addMethods([
24+
'getSelectionId',
25+
'getWebsiteId',
26+
'getSelectionPriceType',
27+
'getSelectionPriceValue',
28+
'getParentProductId',
29+
'getDefaultPriceScope'])
2330
->getMock();
2431
$values = [
2532
'selection_id' => 1,

0 commit comments

Comments
 (0)