Fixed a typo (Photo wants to be a child of Album, not Gallery).

Added commit and skipAutoCommitWorkflows.
No tests in here.
This commit is contained in:
Colin Kuskie 2007-12-21 17:20:39 +00:00
parent b3789d2a0f
commit 99acfb2088

View file

@ -35,19 +35,35 @@ my $gallery
my $album
= $gallery->addChild({
className => "WebGUI::Asset::Wobject::GalleryAlbum",
},
undef,
undef,
{
skipAutoCommitWorkflows => 1,
});
my $photo
= $gallery->addChild({
= $album->addChild({
className => "WebGUI::Asset::File::Image::Photo",
},
undef,
undef,
{
skipAutoCommitWorkflows => 1,
});
$photo->setFile( WebGUI::Test->getCollateralPath('page_title.jpg') );
$versionTag->commit;
$photo->setFile( WebGUI::Test->getTestCollateralPath('page_title.jpg') );
#----------------------------------------------------------------------------
# Tests
plan tests => 1;
TODO: {
local $TODO = "Write some tests";
ok(0, 'No tests here, move on');
}
#----------------------------------------------------------------------------
# Cleanup
END {
$versionTag->rollback();
}
#----------------------------------------------------------------------------
# Tests
plan tests => 1;