Skip to content

Commit

Permalink
Merged to test methods into one.
Browse files Browse the repository at this point in the history
Trying to keep the public method count below 11
  • Loading branch information
barbazul committed Mar 25, 2018
1 parent 5b58a34 commit 3c65999
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions app/code/Magento/Sales/Test/Unit/Model/Order/ItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,23 +244,10 @@ public function getProductOptionsDataProvider()
*
* @dataProvider getItemQtyVariants
*/
public function testGetSimpleQtyToShip(array $options, $expectedResult)
public function testGetSimpleQtyToMethods(array $options, $expectedResult)
{
$this->model->setData($options);
$this->assertSame($this->model->getSimpleQtyToShip(), $expectedResult['to_ship']);
}

/**
* Test different combinations of item qty setups
*
* @param array $options
* @param float $expectedResult
*
* @dataProvider getItemQtyVariants
*/
public function testGetQtyToInvoice(array $options, $expectedResult)
{
$this->model->setData($options);
$this->assertSame($this->model->getQtyToInvoice(), $expectedResult['to_invoice']);
}

Expand Down

0 comments on commit 3c65999

Please sign in to comment.