Produced assets should be refreshed from the db.

This commit is contained in:
Colin Kuskie 2010-04-11 20:35:20 -07:00
parent 2d4d95a01e
commit e8d196c020

View file

@ -37,8 +37,10 @@ sub getAnchoredAsset {
my $asset = $parents[-1]->addChild({
className => $test->class,
}, undef, undef, {skipNotification => 1, skipAutoCommitWorkflows => 1,});
WebGUI::Test->addToCleanup($asset);
$tag->commit;
foreach my $a ($asset, @parents) {
$a = $a->cloneFromDb;
}
WebGUI::Test->addToCleanup($tag);
return ($tag, $asset, @parents);
}