Make version tags mandatory again.
This commit is contained in:
parent
d0b3be1749
commit
4bfabb9469
94 changed files with 405 additions and 489 deletions
|
|
@ -30,6 +30,8 @@ my $wgBday = WebGUI::Test->webguiBirthday;
|
|||
|
||||
my $creationDateSth = $session->db->prepare('update asset set creationDate=? where assetId=?');
|
||||
|
||||
my $tag = WebGUI::VersionTag->getWorking($session);
|
||||
|
||||
my $archive1 = $home->addChild({
|
||||
className => 'WebGUI::Asset::Wobject::StoryArchive',
|
||||
title => '2001 Stories',
|
||||
|
|
@ -57,6 +59,8 @@ my $weekFolder = $archive2->getFolder($weekAgo);
|
|||
my $weekStory = $weekFolder->addChild({className => 'WebGUI::Asset::Story',});
|
||||
$creationDateSth->execute([$weekAgo, $weekFolder->getId]);
|
||||
$creationDateSth->execute([$weekAgo, $weekStory->getId]);
|
||||
$tag->commit;
|
||||
WebGUI::Test->addToCleanup($tag);
|
||||
|
||||
my $workflow = WebGUI::Workflow->create($session,
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ use Data::Dumper;
|
|||
my $session = WebGUI::Test->session;
|
||||
my $temp = WebGUI::Test->asset;
|
||||
|
||||
my $tag = WebGUI::VersionTag->getWorking($session);
|
||||
|
||||
my $calendar = $temp->addChild(
|
||||
{ className => 'WebGUI::Asset::Wobject::Calendar' }
|
||||
);
|
||||
|
|
@ -75,6 +77,9 @@ $clipped_event->setRecurrence(
|
|||
}
|
||||
);
|
||||
|
||||
$tag->commit;
|
||||
WebGUI::Test->addToCleanup($tag);
|
||||
|
||||
my $workflow = WebGUI::Workflow->create(
|
||||
$session, {
|
||||
enabled => 1,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ my $inbox = WebGUI::Inbox->new($session);
|
|||
|
||||
my $import = WebGUI::Test->asset;
|
||||
|
||||
my $tag = WebGUI::VersionTag->getWorking($session);
|
||||
|
||||
my $posters = $import->addChild({
|
||||
className => 'WebGUI::Asset::Sku::Product',
|
||||
url => 'cell_posters',
|
||||
|
|
@ -68,6 +70,9 @@ my $marilynVarId = $posters->setCollateral('variantsJSON', 'variantId', 'new',
|
|||
},
|
||||
);
|
||||
|
||||
$tag->commit;
|
||||
WebGUI::Test->addToCleanup($tag);
|
||||
|
||||
my $workflow = WebGUI::Workflow->create($session,
|
||||
{
|
||||
enabled => 1,
|
||||
|
|
@ -150,6 +155,7 @@ WebGUI::Test->addToCleanup(sub {
|
|||
$session->db->write("delete from Product where assetId=?",[$otherPosters->getId]);
|
||||
$session->db->write("delete from assetIndex where assetId=?",[$otherPosters->getId]);
|
||||
});
|
||||
my $otherTag = WebGUI::VersionTag->getWorking($session);
|
||||
my $movie_posters = $import->addChild({
|
||||
className => 'WebGUI::Asset::Sku::Product',
|
||||
url => 'movie_posters',
|
||||
|
|
@ -165,7 +171,6 @@ my $movieVarId = $movie_posters->setCollateral('variantsJSON', 'variantId', 'new
|
|||
quantity => 5,
|
||||
},
|
||||
);
|
||||
my $otherTag = WebGUI::VersionTag->getWorking($session);
|
||||
WebGUI::Test->addToCleanup($otherTag);
|
||||
$otherTag->commit;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue