From fa7e1062c92d1f6f845cc68d68cc7aa53c83b3d4 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 17 Nov 2009 19:22:51 -0800 Subject: [PATCH] Add a test to make sure line item address changes are processed correctly in the USPS domestic driver. --- t/Shop/ShipDriver/USPS.t | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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