almost done fixing addRevision tests
This commit is contained in:
parent
6931fd471e
commit
7c14d1e6c4
122 changed files with 389 additions and 1052 deletions
|
|
@ -25,10 +25,10 @@ my $session = WebGUI::Test->session;
|
|||
|
||||
my @versionTags = ( WebGUI::VersionTag->getWorking( $session ) );
|
||||
my @addChildArgs = ( {skipAutoCommitWorkflows=>1} );
|
||||
my $collab = WebGUI::Asset->getImportNode( $session )->addChild({
|
||||
my $collab = WebGUI::Test->asset(
|
||||
className => 'WebGUI::Asset::Wobject::Collaboration',
|
||||
threadsPerPage => 20,
|
||||
});
|
||||
);
|
||||
|
||||
my @threads = (
|
||||
$collab->addChild( {
|
||||
|
|
@ -58,11 +58,6 @@ my @threads = (
|
|||
);
|
||||
|
||||
$_->setSkipNotification for @threads;
|
||||
$versionTags[-1]->commit;
|
||||
WebGUI::Test->addToCleanup($versionTags[-1]);
|
||||
foreach my $asset(@threads, $collab) {
|
||||
$asset = $asset->cloneFromDb;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Tests
|
||||
|
|
@ -141,6 +136,8 @@ push @threads, $collab->addChild( {
|
|||
title => "Abababa",
|
||||
isSticky => 0,
|
||||
threadRating => 1_000_000,
|
||||
tagId => $versionTags[-1]->getId,
|
||||
status => "pending",
|
||||
}, undef, 6, @addChildArgs
|
||||
);
|
||||
$sort = sub { $b->get('revisionDate') <=> $a->get('revisionDate') };
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@ my $collab
|
|||
canStartThreadGroupId => 3, # Admin
|
||||
allowReplies => 1,
|
||||
editTimeout => 60 * 60 * 24, # 24 hours
|
||||
tagId => $versionTag->getId,
|
||||
status => "pending",
|
||||
}, @addArgs );
|
||||
|
||||
my $thread
|
||||
|
|
@ -55,7 +57,10 @@ my $thread
|
|||
className => 'WebGUI::Asset::Post::Thread',
|
||||
ownerUserId => $user{"2"}->userId,
|
||||
groupIdView => 7,
|
||||
tagId => $versionTag->getId,
|
||||
status => "pending",
|
||||
}, @addArgs );
|
||||
$thread->setSkipNotification;
|
||||
|
||||
$versionTag->commit( { timeout => 1_000_000 } );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue