Skip to content

Commit 8060802

Browse files
committed
MAGETWO-37983: Improve test code coverage
1 parent efd5ed6 commit 8060802

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

app/code/Magento/CatalogInventory/Test/Unit/Model/Stock/ItemTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,12 +406,11 @@ public function testGetLowStockDate()
406406

407407
/**
408408
* @param array $config
409-
* @param float $expected
409+
* @param mixed $expected
410410
* @dataProvider getQtyIncrementsDataProvider(
411411
*/
412412
public function testGetQtyIncrements($config, $expected)
413413
{
414-
// $qtyIncrements = 5;
415414
$this->setDataArrayValue('qty_increments', $config['qty_increments']);
416415
$this->setDataArrayValue('enable_qty_increments', $config['enable_qty_increments']);
417416
$this->setDataArrayValue('use_config_qty_increments', $config['use_config_qty_increments']);

app/code/Magento/CatalogInventory/Test/Unit/Model/Stock/StockRepositoryTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ class StockRepositoryTest extends \PHPUnit_Framework_TestCase
4747
*/
4848
protected $mapperMock;
4949

50-
5150
protected function setUp()
5251
{
5352

@@ -76,7 +75,6 @@ protected function setUp()
7675
->disableOriginalConstructor()
7776
->getMock();
7877

79-
8078
$this->model = new StockRepository(
8179
$this->stockResourceMock,
8280
$this->stockFactoryMock,
@@ -182,5 +180,4 @@ public function testDeleteByIdException()
182180

183181
$this->assertTrue($this->model->deleteById($id));
184182
}
185-
186183
}

app/code/Magento/CatalogInventory/Test/Unit/Model/Stock/StockStatusRepositoryTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,9 @@ class StockStatusRepositoryTest extends \PHPUnit_Framework_TestCase
4949

5050
protected function setUp()
5151
{
52-
5352
$this->stockStatusMock = $this->getMockBuilder('\Magento\CatalogInventory\Model\Stock\Status')
5453
->disableOriginalConstructor()
5554
->getMock();
56-
5755
$this->stockStatusResourceMock = $this->getMockBuilder('\Magento\CatalogInventory\Model\Resource\Stock\Status')
5856
->disableOriginalConstructor()
5957
->getMock();
@@ -67,7 +65,6 @@ protected function setUp()
6765
)
6866
->disableOriginalConstructor()
6967
->getMock();
70-
7168
$this->queryBuilderFactoryMock = $this->getMockBuilder('Magento\Framework\DB\QueryBuilderFactory')
7269
->disableOriginalConstructor()
7370
->getMock();

0 commit comments

Comments
 (0)