File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed
Block/Adminhtml/Product/Edit Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public function __construct(
109
109
}
110
110
111
111
/**
112
- * @return void
112
+ * @inheritdoc
113
113
*/
114
114
protected function _construct ()
115
115
{
@@ -119,6 +119,8 @@ protected function _construct()
119
119
}
120
120
121
121
/**
122
+ * Get group collection.
123
+ *
122
124
* @param int $attributeSetId
123
125
* @return \Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\Collection
124
126
*/
@@ -131,10 +133,11 @@ public function getGroupCollection($attributeSetId)
131
133
}
132
134
133
135
/**
134
- * @return $this
136
+ * @inheritdoc
135
137
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
136
- * @SuppressWarnings(PHPMD.NPathComplexity)
137
138
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
139
+ * @SuppressWarnings(PHPMD.NPathComplexity)
140
+ * @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
138
141
*/
139
142
protected function _prepareLayout ()
140
143
{
@@ -315,6 +318,8 @@ public function getAttributeTabBlock()
315
318
}
316
319
317
320
/**
321
+ * Set attribute tab block.
322
+ *
318
323
* @param string $attributeTabBlock
319
324
* @return $this
320
325
*/
@@ -337,6 +342,8 @@ protected function _translateHtml($html)
337
342
}
338
343
339
344
/**
345
+ * Get accordion.
346
+ *
340
347
* @param string $parentTab
341
348
* @return string
342
349
*/
Original file line number Diff line number Diff line change 8
8
9
9
use Magento \Catalog \Api \Data \ProductExtensionInterface ;
10
10
use Magento \Catalog \Model \Product ;
11
+ use Magento \Catalog \Model \Product \Attribute \Source \Status ;
11
12
use Magento \Framework \Api \Data \ImageContentInterface ;
12
13
use Magento \Framework \Api \ExtensibleDataInterface ;
13
14
use Magento \Framework \Api \ExtensionAttributesFactory ;
14
15
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager as ObjectManagerHelper ;
15
- use Magento \Catalog \Model \Product \Attribute \Source \Status ;
16
16
17
17
/**
18
18
* Product Test
@@ -567,14 +567,6 @@ public function testGetCategoryId()
567
567
$ this ->assertEquals (10 , $ this ->model ->getCategoryId ());
568
568
}
569
569
570
- public function testGetCategoryIdWhenProductNotInCurrentCategory ()
571
- {
572
- $ this ->model ->setData ('category_ids ' , [12 ]);
573
- $ this ->category ->expects ($ this ->once ())->method ('getId ' )->will ($ this ->returnValue (10 ));
574
- $ this ->registry ->expects ($ this ->any ())->method ('registry ' )->will ($ this ->returnValue ($ this ->category ));
575
- $ this ->assertFalse ($ this ->model ->getCategoryId ());
576
- }
577
-
578
570
public function testGetIdBySku ()
579
571
{
580
572
$ this ->resource ->expects ($ this ->once ())->method ('getIdBySku ' )->will ($ this ->returnValue (5 ));
You can’t perform that action at this time.
0 commit comments