added getCartBySession()
This commit is contained in:
parent
d47d2f2a9c
commit
7c184b26c3
4 changed files with 22 additions and 6 deletions
|
|
@ -35,7 +35,7 @@ plan tests => 16; # Increment this number for each test you create
|
|||
#----------------------------------------------------------------------------
|
||||
# put your tests here
|
||||
|
||||
my $cart = WebGUI::Shop::Cart->create($session);
|
||||
my $cart = WebGUI::Shop::Cart->getCartBySession($session);
|
||||
|
||||
isa_ok($cart, "WebGUI::Shop::Cart");
|
||||
isa_ok($cart->session, "WebGUI::Session");
|
||||
|
|
|
|||
|
|
@ -540,7 +540,7 @@ is($e->error, 'Must pass in a WebGUI::Shop::Cart object', 'calculate: error hand
|
|||
|
||||
##Build a cart, add some Donation SKUs to it. Set one to be taxable.
|
||||
|
||||
my $cart = WebGUI::Shop::Cart->create($session);
|
||||
my $cart = WebGUI::Shop::Cart->getCartBySession($session);
|
||||
|
||||
is($taxer->calculate($cart), 0, 'calculate returns 0 if there is no shippingAddressId in the cart');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue