Skip to content

Commit 2be534d

Browse files
committed
ACP2E-2258: Cannot create Fedex Shipping Label
- addressed CR comment
1 parent b16b1c4 commit 2be534d

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

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

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ public function testRequestToShipmentSuccess(): void
352352
$this->serializer
353353
->method('unserialize')
354354
->willReturnOnConsecutiveCalls($this->getAccessToken(), $this->getProcessShipmentResponse());
355-
$this->serializer->method('serialize')->willReturn($this->getSerializedShipmentRequest());
355+
$this->serializer->method('serialize')->willReturn('');
356356
$this->curlFactory->expects($this->any())->method('create')->willReturn($this->curlClient);
357357
$this->curlClient->expects($this->any())->method('getBody')->willReturnSelf();
358358

@@ -1180,32 +1180,4 @@ private function getShipmentRequestMock(): MockObject
11801180
])
11811181
->getMock();
11821182
}
1183-
1184-
/**
1185-
* Returns a sample serialized shipment request
1186-
*
1187-
* @return string
1188-
*/
1189-
private function getSerializedShipmentRequest(): string
1190-
{
1191-
return 'a:3:{s:17:"requestedShipment";a:11:
1192-
{s:13:"shipDatestamp";s:10:"2023-09-11";s:10:"pickupType";N;s:11:"serviceType";N;s:13:"packagingType";
1193-
N;s:7:"shipper";a:2:{s:7:"contact";a:3:{s:10:"personName";N;s:11:"companyName";N;s:11:"phoneNumber";
1194-
s:10:"1234567890";}s:7:"address";a:5:{s:11:"streetLines";a:1:{i:0;N;}s:4:"city";N;s:19:"stateOrProvinceCode";
1195-
N;s:10:"postalCode";N;s:11:"countryCode";N;}}s:10:"recipients";a:1:{i:0;a:2:{s:7:"contact";a:3:
1196-
{s:10:"personName";N;s:11:"companyName";N;s:11:"phoneNumber";s:10:"1234567890";}s:7:"address";a:6:
1197-
{s:11:"streetLines";a:1:{i:0;N;}s:4:"city";N;s:19:"stateOrProvinceCode";
1198-
N;s:10:"postalCode";N;s:11:"countryCode";N;s:11:"residential";b:0;}}}s:22:"shippingChargesPayment";a:2:
1199-
{s:11:"paymentType";s:6:"SENDER";s:5:"payor";a:1:{s:16:"responsibleParty";a:1:{s:13:"accountNumber";a:1:
1200-
{s:5:"value";N;}}}}s:18:"labelSpecification";a:3:
1201-
{s:15:"labelFormatType";s:8:"COMMON2D";s:9:"imageType";s:3:"PNG";
1202-
s:14:"labelStockType";s:26:"PAPER_85X11_TOP_HALF_LABEL";}s:15:"rateRequestType";
1203-
a:1:{i:0;s:7:"ACCOUNT";}s:17:"totalPackageCount";i:1;s:25:"requestedPackageLineItems";a:1:
1204-
{i:0;a:5:{s:14:"sequenceNumber";s:1:"1";s:6:"weight";a:2:{s:5:"units";s:2:"LB";s:5:"value";N;}
1205-
s:18:"customerReferences";a:1:{i:0;a:2:{s:21:"customerReferenceType";s:18:"CUSTOMER_REFERENCE";s:5:"value";
1206-
s:14:"Reference data";}}s:22:"packageSpecialServices";a:2:{s:19:"specialServiceTypes";a:1:
1207-
{i:0;s:16:"SIGNATURE_OPTION";}s:19:"signatureOptionType";N;}s:10:"dimensions";a:4:
1208-
{s:6:"length";s:1:"1";s:5:"width";s:1:"1";s:6:"height";s:1:"1";s:5:"units";s:2:"CM";}}}}
1209-
s:20:"labelResponseOptions";s:5:"LABEL";s:13:"accountNumber";a:1:{s:5:"value";N;}}';
1210-
}
12111183
}

0 commit comments

Comments
 (0)