fixed tests

This commit is contained in:
Doug Bell 2009-05-07 18:18:55 +00:00
parent 18460256df
commit d0a5cc8d66
9 changed files with 14 additions and 5 deletions

View file

@ -66,7 +66,8 @@ is($sku->getConfiguredTitle, $sku->getTitle, "configured title and title should
is($sku->shipsSeparately, 0, 'shipsSeparately return 0 by default');
$sku->update({shipsSeparately => 1,});
is($sku->shipsSeparately, 1, '... tracks shipsSepartely sku property');
$sku->update({isShippingRequired => 1,});
is($sku->shipsSeparately, 1, 'shipsSeparately only returns true when isShippingRequired and shipsSeparately');
isa_ok($sku->getCart, "WebGUI::Shop::Cart", "can get a cart object");
my $item = $sku->addToCart;