From b3789d2a0f84faa3c8458a35cb21d3bc70bca833 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 21 Dec 2007 17:02:00 +0000 Subject: [PATCH] Added commits and skipAutoCommitWorkflow. Test can be run multiple times. First test is failing. --- t/Asset/File/Image/Photo/setFile.t | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/t/Asset/File/Image/Photo/setFile.t b/t/Asset/File/Image/Photo/setFile.t index 652f41a52..adc51018e 100644 --- a/t/Asset/File/Image/Photo/setFile.t +++ b/t/Asset/File/Image/Photo/setFile.t @@ -34,17 +34,22 @@ my $gallery my $album = $gallery->addChild({ className => "WebGUI::Asset::Wobject::GalleryAlbum", + }, + undef, + undef, + { + skipAutoCommitWorkflows => 1, }); my $photo = $album->addChild({ className => "WebGUI::Asset::File::Image::Photo", + }, + undef, + undef, + { + skipAutoCommitWorkflows => 1, }); - -#---------------------------------------------------------------------------- -# Cleanup -END { - $versionTag->rollback(); -} +$versionTag->commit; #---------------------------------------------------------------------------- # Tests @@ -66,3 +71,9 @@ ok( ); +#---------------------------------------------------------------------------- +# Cleanup +END { + $versionTag->rollback(); +} +