Skip to content

Commit 8ab2dcc

Browse files
committedAug 23, 2011
Fix cleanup and spelling issues with Group.t
1 parent 4f29056 commit 8ab2dcc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎t/Group.t

+6-4
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ my $ldapProps = WebGUI::Test->getSmokeLDAPProps();
192192
$session->db->setRow('ldapLink', 'ldapLinkId', $ldapProps, $ldapProps->{ldapLinkId});
193193
my $ldap = WebGUI::LDAPLink->new($session, $ldapProps->{ldapLinkId});
194194
is($ldap->getValue("ldapLinkId"),$ldapProps->{ldapLinkId},'ldap link created properly');
195-
addToCleanup($ldap);
195+
WebGUI::Test->addToCleanup($ldap);
196196

197197
my @shawshank;
198198

@@ -687,7 +687,8 @@ cmp_bag(
687687
ok $localSession->user->isInGroup($localScratchGroup->getId), 'Local Visitor is in the scratch group';
688688

689689
$remoteSession->stow->delete('isInGroup');
690-
ok !$remoteSession->user->isInGroup($localScratchGroup->getId), 'Remove Visitor is not in the scratch group, even though a different Visitor passed';
690+
$localScratchGroup->clearCaches;
691+
ok !$remoteSession->user->isInGroup($localScratchGroup->getId), 'Remote Visitor is not in the scratch group, even though a different Visitor passed';
691692

692693
}
693694

@@ -765,7 +766,8 @@ foreach my $ipTest (@ipTests) {
765766
ok $localSession->user->isInGroup($localIpGroup->getId), 'Local Visitor is in the group';
766767

767768
$remoteSession->stow->delete('isInGroup');
768-
ok !$remoteSession->user->isInGroup($localIpGroup->getId), 'Remove Visitor is not in the group, even though a different Visitor passed';
769+
$localIpGroup->clearCaches;
770+
ok !$remoteSession->user->isInGroup($localIpGroup->getId), 'Remote Visitor is not in the group, even though a different Visitor passed';
769771

770772
}
771773

@@ -840,7 +842,7 @@ ok(! WebGUI::Group->vitalGroup('27'), '... 27 is not vital');
840842
# Normal group
841843
my $happyDude = WebGUI::User->create( $session );
842844
$happyDude->username(" Happy Dude ");
843-
addToCleanup( $happyDude );
845+
WebGUI::Test->addToCleanup( $happyDude );
844846

845847
$gA->addUsers([ $happyDude->getId ]);
846848
$gB->addUsers([ $happyDude->getId ]);

0 commit comments

Comments
 (0)
Please sign in to comment.