Provide a way for WebGUI::Test to register groups to clean up at
the end of a test. Convert several tests to use that, including Post.t, which leaked Groups.
This commit is contained in:
parent
0cbe0cc117
commit
ddd06c2ede
4 changed files with 35 additions and 6 deletions
|
|
@ -60,6 +60,7 @@ my $otherUser = WebGUI::User->new($session, 'new');
|
|||
my $groupIdEditUser = WebGUI::User->new($session, 'new');
|
||||
my $groupToEditPost = WebGUI::Group->new($session, $collab->get('groupToEditPost'));
|
||||
my $groupIdEditGroup = WebGUI::Group->new($session, $collab->get('groupIdEdit'));
|
||||
WebGUI::Test->groupsToDelete($groupToEditPost, $groupIdEditGroup);
|
||||
$postingUser->username('userForPosting');
|
||||
$otherUser->username('otherUser');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue