Add tests to check how getThumbnailUrl is supposed to work in the Product.

Then fix the bugs I added to it yesterday.
This commit is contained in:
Colin Kuskie 2008-06-20 22:05:47 +00:00
parent 2dac29bce5
commit 14724cbbef
5 changed files with 57 additions and 7 deletions

View file

@ -41,9 +41,9 @@ plan tests => 33; # Increment this number for each test you create
# put your tests here
my $root = WebGUI::Asset->getRoot($session);
my $product = $root->addChild({
className => "WebGUI::Asset::Sku::Product",
title => "Rock Hammer",
});
className => "WebGUI::Asset::Sku::Product",
title => "Rock Hammer",
});
isa_ok($product, "WebGUI::Asset::Sku::Product");
ok(! exists $product->{_collateral}, 'object cache does not exist yet');