Skip to content

Commit b2726bb

Browse files
author
Prabhu Ram
committed
MC-20637: MyAccount :: Order Details :: Invoice Details by Order Number
- test fixes
1 parent 81182ab commit b2726bb

File tree

2 files changed

+22
-40
lines changed

2 files changed

+22
-40
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Sales/InvoiceTest.php

Lines changed: 18 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ public function testSingleInvoiceForLoggedInCustomerQuery()
6565
total_amount {
6666
value
6767
}
68-
amount_exc_tax {
69-
value
70-
}
7168
}
7269
}
7370
}
@@ -122,9 +119,6 @@ public function testSingleInvoiceForLoggedInCustomerQuery()
122119
'shipping_handling' => [
123120
'total_amount' => [
124121
'value' => null
125-
],
126-
'amount_exc_tax' => [
127-
'value' => null
128122
]
129123
]
130124
]
@@ -192,9 +186,6 @@ public function testMultipleInvoiceForLoggedInCustomerQuery()
192186
total_amount {
193187
value
194188
}
195-
amount_exc_tax {
196-
value
197-
}
198189
}
199190
}
200191
}
@@ -241,9 +232,6 @@ public function testMultipleInvoiceForLoggedInCustomerQuery()
241232
'shipping_handling' => [
242233
'total_amount' => [
243234
'value' => null
244-
],
245-
'amount_exc_tax' => [
246-
'value' => null
247235
]
248236
]
249237
]
@@ -272,9 +260,6 @@ public function testMultipleInvoiceForLoggedInCustomerQuery()
272260
'shipping_handling' => [
273261
'total_amount' => [
274262
'value' => null
275-
],
276-
'amount_exc_tax' => [
277-
'value' => null
278263
]
279264
]
280265
]
@@ -327,30 +312,27 @@ public function testMultipleCustomersWithInvoicesQuery()
327312
value
328313
}
329314
quantity_invoiced
330-
}
331-
total {
332-
subtotal {
333-
value
334-
}
335-
grand_total {
336-
value
337-
}
338-
total_shipping {
339-
value
340-
}
341-
shipping_handling {
342-
total_amount {
343-
value
344-
}
345-
amount_exc_tax {
346-
value
347-
}
348-
}
315+
}
316+
total {
317+
subtotal {
318+
value
319+
}
320+
grand_total {
321+
value
322+
}
323+
total_shipping {
324+
value
325+
}
326+
shipping_handling {
327+
total_amount {
328+
value
349329
}
350330
}
331+
}
351332
}
352-
}
353-
}
333+
}
334+
}
335+
}
354336
}
355337
QUERY;
356338

@@ -391,9 +373,6 @@ public function testMultipleCustomersWithInvoicesQuery()
391373
'shipping_handling' => [
392374
'total_amount' => [
393375
'value' => null
394-
],
395-
'amount_exc_tax' => [
396-
'value' => null
397376
]
398377
]
399378
]

dev/tests/integration/testsuite/Magento/Sales/_files/customers_with_invoices.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
$payment = $objectManager->create(\Magento\Sales\Model\Order\Payment::class);
2323
$payment->setMethod('checkmo');
2424

25+
$payment2 = $objectManager->create(\Magento\Sales\Model\Order\Payment::class);
26+
$payment2->setMethod('checkmo');
27+
2528
/** @var $product \Magento\Catalog\Model\Product */
2629
$product = $objectManager->create(\Magento\Catalog\Model\Product::class);
2730
$repository = $objectManager->create(\Magento\Catalog\Model\ProductRepository::class);
@@ -118,7 +121,7 @@
118121
$order2->setBillingAddress($billingAddress);
119122
$order2->setShippingAddress($shippingAddress);
120123
$order2->setAddresses([$billingAddress, $shippingAddress]);
121-
$order2->setPayment($payment);
124+
$order2->setPayment($payment2);
122125
$order2->addItem($orderItem2);
123126
$order2->setStoreId($objectManager->get(\Magento\Store\Model\StoreManagerInterface::class)->getStore()->getId());
124127
$order2->setSubtotal(100);

0 commit comments

Comments
 (0)