@@ -352,7 +352,7 @@ public function testRequestToShipmentSuccess(): void
352
352
$ this ->serializer
353
353
->method ('unserialize ' )
354
354
->willReturnOnConsecutiveCalls ($ this ->getAccessToken (), $ this ->getProcessShipmentResponse ());
355
- $ this ->serializer ->method ('serialize ' )->willReturn ($ this -> getSerializedShipmentRequest () );
355
+ $ this ->serializer ->method ('serialize ' )->willReturn ('' );
356
356
$ this ->curlFactory ->expects ($ this ->any ())->method ('create ' )->willReturn ($ this ->curlClient );
357
357
$ this ->curlClient ->expects ($ this ->any ())->method ('getBody ' )->willReturnSelf ();
358
358
@@ -1180,32 +1180,4 @@ private function getShipmentRequestMock(): MockObject
1180
1180
])
1181
1181
->getMock ();
1182
1182
}
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
- }
1211
1183
}
0 commit comments