add some comment headers
This commit is contained in:
parent
7f59bd3f33
commit
75a7fe80ba
1 changed files with 12 additions and 0 deletions
|
|
@ -57,6 +57,12 @@ my $properties = {
|
||||||
my $defaultAsset = WebGUI::Asset->getDefault($session);
|
my $defaultAsset = WebGUI::Asset->getDefault($session);
|
||||||
my $asset = $defaultAsset->addChild($properties, $properties->{id});
|
my $asset = $defaultAsset->addChild($properties, $properties->{id});
|
||||||
|
|
||||||
|
############################################
|
||||||
|
#
|
||||||
|
# getStorageLocation
|
||||||
|
#
|
||||||
|
############################################
|
||||||
|
|
||||||
ok($asset->getStorageLocation, 'File Asset getStorageLocation initialized');
|
ok($asset->getStorageLocation, 'File Asset getStorageLocation initialized');
|
||||||
ok($asset->get('storageId'), 'getStorageLocation updates asset object with storage location');
|
ok($asset->get('storageId'), 'getStorageLocation updates asset object with storage location');
|
||||||
is($asset->get('storageId'), $asset->getStorageLocation->getId, 'Asset storageId and cached storageId agree');
|
is($asset->get('storageId'), $asset->getStorageLocation->getId, 'Asset storageId and cached storageId agree');
|
||||||
|
|
@ -71,6 +77,12 @@ is($storage->getId, $asset->getStorageLocation->getId, 'Cached Asset storage loc
|
||||||
|
|
||||||
$versionTag->commit;
|
$versionTag->commit;
|
||||||
|
|
||||||
|
############################################
|
||||||
|
#
|
||||||
|
# getStorageFromPost
|
||||||
|
#
|
||||||
|
############################################
|
||||||
|
|
||||||
my $fileStorage = WebGUI::Storage->create($session);
|
my $fileStorage = WebGUI::Storage->create($session);
|
||||||
$mocker->set_always('getValueFromPost', $fileStorage->getId);
|
$mocker->set_always('getValueFromPost', $fileStorage->getId);
|
||||||
my $fileFormStorage = $asset->getStorageFromPost();
|
my $fileFormStorage = $asset->getStorageFromPost();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue