From b397651620b7c28b1f4614d76743334573014901 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 19 Jan 2010 18:39:43 -0800 Subject: [PATCH] Update the Product test for changes in the Storage API. --- t/Asset/Sku/Product.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/Asset/Sku/Product.t b/t/Asset/Sku/Product.t index 98409d01c..c649bdaf7 100644 --- a/t/Asset/Sku/Product.t +++ b/t/Asset/Sku/Product.t @@ -53,6 +53,7 @@ is($product->getThumbnailUrl(), '', 'Product with no image1 property returns the my $image = WebGUI::Storage->create($session); WebGUI::Test->storagesToDelete($image); $image->addFileFromFilesystem(WebGUI::Test->getTestCollateralPath('lamp.jpg')); +$image->generateThumbnail('lamp.jpg'); my $imagedProduct = $node->addChild({ className => "WebGUI::Asset::Sku::Product", @@ -67,6 +68,7 @@ is($imagedProduct->getThumbnailUrl(), $image->getThumbnailUrl('lamp.jpg'), 'getT my $otherImage = WebGUI::Storage->create($session); WebGUI::Test->storagesToDelete($otherImage); $otherImage->addFileFromFilesystem(WebGUI::Test->getTestCollateralPath('gooey.jpg')); +$otherImage->generateThumbnail('gooey.jpg'); ok($imagedProduct->getThumbnailUrl($otherImage), 'getThumbnailUrl with an explicit storageId returns something'); is($imagedProduct->getThumbnailUrl($otherImage), $otherImage->getThumbnailUrl('gooey.jpg'), 'getThumbnailUrl with an explicit storageId returns the right path to the URL');