File tree 2 files changed +4
-4
lines changed
app/code/Magento/SalesGraphQl/Model/Resolver
dev/tests/api-functional/testsuite/Magento/GraphQl/Sales 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ private function getAllAppliedTaxesForItems(array $itemAppliedTaxes): array
93
93
/**
94
94
* Retrieve applied taxes that apply to shipping
95
95
*
96
- * @param \Magento\Tax\Api\Data\OrderTaxDetailsItemInterface $extensionAttributes
96
+ * @param \Magento\Tax\Api\Data\OrderTaxDetailsItemInterface $itemAppliedTaxes
97
97
* @return array
98
98
*/
99
99
private function getAppliedShippingTaxesForItems (array $ itemAppliedTaxes ): array
@@ -125,7 +125,7 @@ private function getShippingDiscountDetails(OrderInterface $order)
125
125
if (!($ order ->getDiscountDescription () === null && $ order ->getShippingDiscountAmount () == 0 )) {
126
126
$ shippingDiscounts [] =
127
127
[
128
- 'label ' => $ order ->getDiscountDescription () ?? " null " ,
128
+ 'label ' => $ order ->getDiscountDescription () ?? __ ( ' Discount ' ) ,
129
129
'amount ' => [
130
130
'value ' => $ order ->getShippingDiscountAmount (),
131
131
'currency ' => $ order ->getOrderCurrencyCode ()
@@ -146,7 +146,7 @@ private function getDiscountDetails(OrderInterface $order)
146
146
$ discounts = [];
147
147
if (!($ order ->getDiscountDescription () === null && $ order ->getDiscountAmount () == 0 )) {
148
148
$ discounts [] = [
149
- 'label ' => $ order ->getDiscountDescription () ?? __ (" Discount " ),
149
+ 'label ' => $ order ->getDiscountDescription () ?? __ (' Discount ' ),
150
150
'amount ' => [
151
151
'value ' => $ order ->getDiscountAmount (),
152
152
'currency ' => $ order ->getOrderCurrencyCode ()
Original file line number Diff line number Diff line change 19
19
use Magento \TestFramework \TestCase \GraphQlAbstract ;
20
20
21
21
/**
22
- * Class RetrieveOrdersWithBundleProductByOrderNumberTest
22
+ * Test for orders with bundle product
23
23
*/
24
24
class RetrieveOrdersWithBundleProductByOrderNumberTest extends GraphQlAbstract
25
25
{
You can’t perform that action at this time.
0 commit comments