Skip to content

Commit ad74fba

Browse files
author
Joan He
committed
MC-4245: Upgrade DHL schema to the latest
- fixed static test failures
1 parent 5125913 commit ad74fba

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

app/code/Magento/Dhl/Model/Carrier.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,7 @@ protected function _doRequest()
16091609
* @return void
16101610
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
16111611
* @SuppressWarnings(PHPMD.NPathComplexity)
1612+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
16121613
*/
16131614
protected function _shipmentDetails($xml, $rawRequest, $originRegion = '')
16141615
{

app/code/Magento/Dhl/Test/Unit/Model/CarrierTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ class CarrierTest extends \PHPUnit\Framework\TestCase
101101
*/
102102
private $productMetadataMock;
103103

104-
105104
/**
106105
* @inheritdoc
107106
*/

app/code/Magento/Dhl/Test/Unit/Model/_files/dhl_quote_response_rates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
'cost' => 35.26,
2929
'method' => 'P'
3030
]
31-
];
31+
];

app/code/Magento/Dhl/Test/Unit/Model/_files/shipment_request.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
28
<req:ShipmentRequest xmlns:req="http://www.dhl.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
39
xsi:schemaLocation="http://www.dhl.com ship-val-global-req-6.2.xsd" schemaVersion="6.2">
410
<Request xmlns="">

0 commit comments

Comments
 (0)