fix a bug where updating the storageId in File Type assets did not update the cached storageLocation. Also fixed the Thumbnail Macro test
This commit is contained in:
parent
332933337a
commit
2c246c06cc
6 changed files with 195 additions and 11 deletions
|
|
@ -57,14 +57,17 @@ my $properties = {
|
|||
title => 'Thumbnail macro test',
|
||||
className => 'WebGUI::Asset::File::Image',
|
||||
url => 'thumbnail-test',
|
||||
storageId => $storage->getId,
|
||||
filename => 'square.png',
|
||||
};
|
||||
my $defaultAsset = WebGUI::Asset->getDefault($session);
|
||||
$session->asset($defaultAsset);
|
||||
my $asset = $defaultAsset->addChild($properties, $properties->{id});
|
||||
$asset->update({
|
||||
storageId => $storage->getId,
|
||||
filename => 'square.png',
|
||||
});
|
||||
$versionTag->commit;
|
||||
|
||||
|
||||
$asset->generateThumbnail();
|
||||
|
||||
##Call the Thumbnail Macro with that Asset's URL and see if it returns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue