Skip to content

Commit 3995062

Browse files
committed
MAGETWO-34729: Code coverage
1 parent a77a5a1 commit 3995062

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

app/code/Magento/Sales/Test/Unit/Model/Order/Creditmemo/Total/SubtotalTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ class SubtotalTest extends \PHPUnit_Framework_TestCase
3030

3131
public function setUp()
3232
{
33-
$this->orderMock = $this->getMock('Magento\Sales\Model\Order',
33+
$this->orderMock = $this->getMock(
34+
'Magento\Sales\Model\Order',
3435
['getBaseShippingDiscountAmount', 'getBaseShippingAmount', 'getShippingAmount'],
3536
[],
3637
'',
3738
false
3839
);
39-
$this->orderItemMock = $this->getMock('Magento\Sales\Model\Order',
40+
$this->orderItemMock = $this->getMock(
41+
'Magento\Sales\Model\Order',
4042
[
4143
'isDummy', 'getDiscountInvoiced', 'getBaseDiscountInvoiced', 'getQtyInvoiced', 'getQty',
4244
'getDiscountRefunded', 'getQtyRefunded'
@@ -45,7 +47,8 @@ public function setUp()
4547
'',
4648
false
4749
);
48-
$this->creditmemoMock = $this->getMock('\Magento\Sales\Model\Order\Creditmemo',
50+
$this->creditmemoMock = $this->getMock(
51+
'\Magento\Sales\Model\Order\Creditmemo',
4952
[
5053
'setBaseCost', 'getAllItems', 'getOrder', 'getBaseShippingAmount', 'roundPrice',
5154
'setDiscountAmount', 'setBaseDiscountAmount', 'setSubtotal', 'setBaseSubtotal',

app/code/Magento/Sales/Test/Unit/Model/Order/Invoice/Grid/Row/UrlGeneratorTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace Magento\Sales\Test\Unit\Model\Order\Invoice\Grid\Row;
88

9-
class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
9+
class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
1010
{
1111
/**
1212
* @var \Magento\Sales\Model\Order\Grid\Row\UrlGenerator
@@ -42,7 +42,9 @@ public function setUp()
4242
[]
4343
);
4444
$this->urlGenerator = new \Magento\Sales\Model\Order\Invoice\Grid\Row\UrlGenerator(
45-
$this->urlMock, $this->authorizationMock, [
45+
$this->urlMock,
46+
$this->authorizationMock,
47+
[
4648
'path' => 'path'
4749
]
4850
);

0 commit comments

Comments
 (0)