Skip to content

Commit d70da1d

Browse files
author
Oleksii Korshenko
committed
Merge remote-tracking branch 'origin/MAGETWO-64539-PR-3155' into develop-prs
2 parents 14173b6 + fe4e2ac commit d70da1d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app/code/Magento/Tax/Test/Unit/Model/Plugin/OrderSaveTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ protected function setupExtensionAttributeMock()
9898
protected function verifyOrderTaxes($expectedTaxes)
9999
{
100100
$index = 0;
101-
$orderTaxes = [];
102101
foreach ($expectedTaxes as $orderTaxId => $orderTaxData) {
103102
$orderTaxMock = $this->getMockBuilder(\Magento\Tax\Model\Sales\Order\Tax::class)
104103
->disableOriginalConstructor()
@@ -122,15 +121,13 @@ protected function verifyOrderTaxes($expectedTaxes)
122121
$this->orderTaxFactoryMock->expects($this->at($index))
123122
->method('create')
124123
->willReturn($orderTaxMock);
125-
$orderTaxes[] = $orderTaxMock;
126124
$index++;
127125
}
128126
}
129127

130128
public function verifyItemTaxes($expectedItemTaxes)
131129
{
132130
$index = 0;
133-
$itemTaxes = [];
134131
foreach ($expectedItemTaxes as $itemTax) {
135132
$itemTaxMock = $this->getMockBuilder(\Magento\Sales\Model\Order\Tax\Item::class)
136133
->disableOriginalConstructor()
@@ -150,7 +147,6 @@ public function verifyItemTaxes($expectedItemTaxes)
150147
$this->taxItemFactoryMock->expects($this->at($index))
151148
->method('create')
152149
->willReturn($itemTaxMock);
153-
$itemTaxes[] = $itemTaxMock;
154150
$index++;
155151
}
156152
}

0 commit comments

Comments
 (0)