From 374840382f8ca6e733ebb5438438963944823130 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 2 Apr 2009 00:04:53 +0000 Subject: [PATCH] Shipper is no longer checked by readyForCheckout. Update test to follow. --- t/Shop/Cart.t | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/t/Shop/Cart.t b/t/Shop/Cart.t index 70e0b1db8..47f3ab1c9 100644 --- a/t/Shop/Cart.t +++ b/t/Shop/Cart.t @@ -33,7 +33,7 @@ my $i18n = WebGUI::International->new($session, "Shop"); #---------------------------------------------------------------------------- # Tests -plan tests => 28; # Increment this number for each test you create +plan tests => 27; # Increment this number for each test you create #---------------------------------------------------------------------------- # put your tests here @@ -108,18 +108,10 @@ is($cart->readyForCheckout, 1, 'Cart is ready for checkout'); $cart->update( {shippingAddressId => 'Does Not Exist'} ); is( $cart->readyForCheckout, 0, 'Cannot checkout cart without shipping address' ); -# Check shipper constraint -$cart->update( { - shippingAddressId => $address->getId, - shipperId => 'Does Not Exist', -} ); -is( $cart->readyForCheckout, 0, 'Cannot checkout cart without shipper' ); - # Check minimum transaction amount $session->setting->set( 'shopCartCheckoutMinimum', 1000 ); -$cart->update( { +$cart->update( { shippingAddressId => $address->getId, - shipperId => $shipper->getId, } ); is( $cart->readyForCheckout, 0, 'Cannot checkout cart when cart total is lower than required' ); $session->setting->set( 'shopCartCheckoutMinimum', 0 );