Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 3c65999

Browse files
committed
Merged to test methods into one.
Trying to keep the public method count below 11
1 parent 5b58a34 commit 3c65999

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

app/code/Magento/Sales/Test/Unit/Model/Order/ItemTest.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -244,23 +244,10 @@ public function getProductOptionsDataProvider()
244244
*
245245
* @dataProvider getItemQtyVariants
246246
*/
247-
public function testGetSimpleQtyToShip(array $options, $expectedResult)
247+
public function testGetSimpleQtyToMethods(array $options, $expectedResult)
248248
{
249249
$this->model->setData($options);
250250
$this->assertSame($this->model->getSimpleQtyToShip(), $expectedResult['to_ship']);
251-
}
252-
253-
/**
254-
* Test different combinations of item qty setups
255-
*
256-
* @param array $options
257-
* @param float $expectedResult
258-
*
259-
* @dataProvider getItemQtyVariants
260-
*/
261-
public function testGetQtyToInvoice(array $options, $expectedResult)
262-
{
263-
$this->model->setData($options);
264251
$this->assertSame($this->model->getQtyToInvoice(), $expectedResult['to_invoice']);
265252
}
266253

0 commit comments

Comments
 (0)