Skip to content

Commit fe4e2ac

Browse files
author
Oleksii Korshenko
committed
MAGETWO-64539: [GitHub] [PR] Remove unused variables in unit test #3155
- Merge Pull Request #3155 from fooman/magento2:patch-7
2 parents 5eb49dc + 32cffa5 commit fe4e2ac

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)