Add cleanup code for newly added tests for canAdd being called as a method.

This commit is contained in:
Colin Kuskie 2011-08-02 09:58:46 -07:00
parent a3ff0fb7a5
commit 44f62c9884

View file

@ -1219,7 +1219,7 @@ subtest 'canAdd tolerates being called as an object method', sub {
# Make a test user who's just in Turn Admin On
my $u = WebGUI::User->create($session);
WebGUI::Test->addToCleanup($u);
WebGUI::Test->addToCleanup($u, $snip);
$u->addToGroups(['12']);
$session->user({ user => $u });