File tree Expand file tree Collapse file tree 3 files changed +1
-8
lines changed
app/code/Magento/CatalogInventory/Test/Unit/Model/Stock Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -406,12 +406,11 @@ public function testGetLowStockDate()
406
406
407
407
/**
408
408
* @param array $config
409
- * @param float $expected
409
+ * @param mixed $expected
410
410
* @dataProvider getQtyIncrementsDataProvider(
411
411
*/
412
412
public function testGetQtyIncrements ($ config , $ expected )
413
413
{
414
- // $qtyIncrements = 5;
415
414
$ this ->setDataArrayValue ('qty_increments ' , $ config ['qty_increments ' ]);
416
415
$ this ->setDataArrayValue ('enable_qty_increments ' , $ config ['enable_qty_increments ' ]);
417
416
$ this ->setDataArrayValue ('use_config_qty_increments ' , $ config ['use_config_qty_increments ' ]);
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ class StockRepositoryTest extends \PHPUnit_Framework_TestCase
47
47
*/
48
48
protected $ mapperMock ;
49
49
50
-
51
50
protected function setUp ()
52
51
{
53
52
@@ -76,7 +75,6 @@ protected function setUp()
76
75
->disableOriginalConstructor ()
77
76
->getMock ();
78
77
79
-
80
78
$ this ->model = new StockRepository (
81
79
$ this ->stockResourceMock ,
82
80
$ this ->stockFactoryMock ,
@@ -182,5 +180,4 @@ public function testDeleteByIdException()
182
180
183
181
$ this ->assertTrue ($ this ->model ->deleteById ($ id ));
184
182
}
185
-
186
183
}
Original file line number Diff line number Diff line change @@ -49,11 +49,9 @@ class StockStatusRepositoryTest extends \PHPUnit_Framework_TestCase
49
49
50
50
protected function setUp ()
51
51
{
52
-
53
52
$ this ->stockStatusMock = $ this ->getMockBuilder ('\Magento\CatalogInventory\Model\Stock\Status ' )
54
53
->disableOriginalConstructor ()
55
54
->getMock ();
56
-
57
55
$ this ->stockStatusResourceMock = $ this ->getMockBuilder ('\Magento\CatalogInventory\Model\Resource\Stock\Status ' )
58
56
->disableOriginalConstructor ()
59
57
->getMock ();
@@ -67,7 +65,6 @@ protected function setUp()
67
65
)
68
66
->disableOriginalConstructor ()
69
67
->getMock ();
70
-
71
68
$ this ->queryBuilderFactoryMock = $ this ->getMockBuilder ('Magento\Framework\DB\QueryBuilderFactory ' )
72
69
->disableOriginalConstructor ()
73
70
->getMock ();
You can’t perform that action at this time.
0 commit comments