File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed
Test/Unit/Model/Rule/Condition Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ public function loadAttributeOptions()
101
101
102
102
/**
103
103
* {@inheritdoc}
104
+ *
105
+ * @param array &$attributes
106
+ * @return void
104
107
*/
105
108
protected function _addSpecialAttributes (array &$ attributes )
106
109
{
@@ -228,6 +231,8 @@ protected function addNotGlobalAttribute(
228
231
229
232
/**
230
233
* {@inheritdoc}
234
+ *
235
+ * @return string
231
236
*/
232
237
public function getMappedSqlField ()
233
238
{
@@ -247,6 +252,9 @@ public function getMappedSqlField()
247
252
248
253
/**
249
254
* {@inheritdoc}
255
+ *
256
+ * @param \Magento\Catalog\Model\ResourceModel\Product\Collection $productCollection
257
+ * @return $this
250
258
*/
251
259
public function collectValidatedAttributes ($ productCollection )
252
260
{
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ class ProductTest extends \PHPUnit\Framework\TestCase
27
27
*/
28
28
private $ attributeMock ;
29
29
30
+ /**
31
+ * @inheritdoc
32
+ *
33
+ * @return void
34
+ */
30
35
protected function setUp ()
31
36
{
32
37
$ objectManagerHelper = new ObjectManager ($ this );
@@ -60,6 +65,11 @@ protected function setUp()
60
65
);
61
66
}
62
67
68
+ /**
69
+ * Test addToCollection method.
70
+ *
71
+ * @return void
72
+ */
63
73
public function testAddToCollection ()
64
74
{
65
75
$ collectionMock = $ this ->createMock (\Magento \Catalog \Model \ResourceModel \Product \Collection::class);
@@ -83,6 +93,11 @@ public function testAddToCollection()
83
93
$ this ->model ->addToCollection ($ collectionMock );
84
94
}
85
95
96
+ /**
97
+ * Test getMappedSqlField method.
98
+ *
99
+ * @return void
100
+ */
86
101
public function testGetMappedSqlFieldSku ()
87
102
{
88
103
$ this ->model ->setAttribute ('sku ' );
Original file line number Diff line number Diff line change @@ -184,8 +184,8 @@ protected function _getMappedSqlCondition(
184
184
185
185
/**
186
186
* @param Combine $combine
187
- * @param string $value
188
- * @param bool $isDefaultStoreUsed
187
+ * @param string $value
188
+ * @param bool $isDefaultStoreUsed
189
189
* @return string
190
190
* @SuppressWarnings(PHPMD.NPathComplexity)
191
191
* @throws \Magento\Framework\Exception\LocalizedException
You can’t perform that action at this time.
0 commit comments