Shipper is no longer checked by readyForCheckout. Update
test to follow.
This commit is contained in:
parent
629abc4517
commit
374840382f
1 changed files with 2 additions and 10 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue