diff --git a/t/Shop/ShipDriver/USPS.t b/t/Shop/ShipDriver/USPS.t index 01a9e6bcb..43c1bcfd5 100644 --- a/t/Shop/ShipDriver/USPS.t +++ b/t/Shop/ShipDriver/USPS.t @@ -25,7 +25,7 @@ use WebGUI::Test; # Must use this before any other WebGUI modules use WebGUI::Session; use WebGUI::Shop::ShipDriver::USPS; -plan tests => 65; +plan tests => 66; #---------------------------------------------------------------------------- # Init @@ -623,6 +623,13 @@ SKIP: { } +my $xmlData = XMLin(q{ +971235371520.0REGULARTRUE7Parcel Post7.62971235371518.0REGULARTRUE7Parcel Post7.629712353703120.0REGULARTRUE7Parcel Post16.67 +}, KeepRoot => 1, ForceArray => [qw/Package/],); + +my $cost = $driver->_calculateFromXML($xmlData, @shippableUnits); +is $cost, "39.53", 'calculating shipping cost for separate shipping addreses in 1 transaction'; + ####################################################################### # # Test Priority shipping setup