convert all test cleanup to addToCleanup
This commit is contained in:
parent
421b9652cf
commit
4c18ba3563
82 changed files with 190 additions and 307 deletions
|
|
@ -54,7 +54,7 @@ my $otherUser = WebGUI::User->new($session, 'new');
|
|||
my $groupIdEditUser = WebGUI::User->new($session, 'new');
|
||||
my $groupToEditPostId = $collab->get('groupToEditPost');
|
||||
my $groupIdEdit = $collab->get('groupIdEdit');
|
||||
WebGUI::Test->usersToDelete($postingUser, $otherUser, $groupIdEditUser);
|
||||
WebGUI::Test->addToCleanup($postingUser, $otherUser, $groupIdEditUser);
|
||||
$postingUser->username('userForPosting');
|
||||
$otherUser->username('otherUser');
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ my $props = {
|
|||
my $post = $collab->addChild($props, @addArgs);
|
||||
|
||||
$versionTag->commit();
|
||||
WebGUI::Test->tagsToRollback($versionTag);
|
||||
WebGUI::Test->addToCleanup($versionTag);
|
||||
$post = $post->cloneFromDb;
|
||||
|
||||
# Test for a sane object type
|
||||
|
|
@ -148,7 +148,7 @@ my $post2 = $collab->addChild({
|
|||
ownerUserId => 1,
|
||||
}, @addArgs);
|
||||
$versionTag2->commit();
|
||||
WebGUI::Test->tagsToRollback($versionTag);
|
||||
WebGUI::Test->addToCleanup($versionTag);
|
||||
my $variables;
|
||||
$session->user({userId => 1});
|
||||
$variables = $post1->getTemplateVars();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue