almost done fixing addRevision tests
This commit is contained in:
parent
6931fd471e
commit
7c14d1e6c4
122 changed files with 389 additions and 1052 deletions
|
|
@ -255,7 +255,7 @@ cmp_ok($bundle->get('lastModified'), '>=', $startTime, '... updates lastModified
|
|||
#
|
||||
###################################################################
|
||||
|
||||
my $root = WebGUI::Asset->getRoot($session);
|
||||
my $root = WebGUI::Test->asset;
|
||||
|
||||
my $snippet = $root->addChild({
|
||||
className => 'WebGUI::Asset::Snippet',
|
||||
|
|
@ -276,15 +276,6 @@ WebGUI::Test->addToCleanup($storage);
|
|||
$storage->addFileFromScalar('addendum', 'Red was too');
|
||||
$storage->addFileFromFilesystem(WebGUI::Test->getTestCollateralPath('ShawshankRedemptionMoviePoster.jpg'));
|
||||
|
||||
my $snippetTag = WebGUI::VersionTag->getWorking($session);
|
||||
WebGUI::Test->addToCleanup($snippetTag);
|
||||
$snippetTag->commit;
|
||||
|
||||
|
||||
foreach my $asset ($snippet, $fileAsset) {
|
||||
$asset = $asset->cloneFromDb;
|
||||
}
|
||||
|
||||
my $guts;
|
||||
$guts = $bundle->fetchAsset(URI->new('asset://filePumpSnippet'));
|
||||
cmp_deeply(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue