From 99acfb2088e9233cf8026914af38e16ae83ea1f6 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 21 Dec 2007 17:20:39 +0000 Subject: [PATCH] Fixed a typo (Photo wants to be a child of Album, not Gallery). Added commit and skipAutoCommitWorkflows. No tests in here. --- t/Asset/File/Image/Photo/view.t | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/t/Asset/File/Image/Photo/view.t b/t/Asset/File/Image/Photo/view.t index 5511e529f..05ab79b50 100644 --- a/t/Asset/File/Image/Photo/view.t +++ b/t/Asset/File/Image/Photo/view.t @@ -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;