MINOR: Don't couple GroupTest to the Member_GroupSet object.

This commit is contained in:
Sam Minnee 2009-11-21 17:43:49 +13:00
parent 79e0634537
commit 3619eae9eb

View File

@ -62,13 +62,9 @@ class GroupTest extends FunctionalTest {
$form->saveInto($member);
$updatedGroups = $member->Groups();
$controlGroups = new Member_GroupSet(
$adminGroup,
$parentGroup
);
$this->assertEquals(
$updatedGroups->Map('ID','ID'),
$controlGroups->Map('ID','ID'),
array($adminGroup->ID, $parentGroup->ID),
$updatedGroups->column(),
"Adding a toplevel group works"
);
@ -82,12 +78,9 @@ class GroupTest extends FunctionalTest {
$form->saveInto($member);
$member->flushCache();
$updatedGroups = $member->Groups();
$controlGroups = new Member_GroupSet(
$adminGroup
);
$this->assertEquals(
$updatedGroups->Map('ID','ID'),
$controlGroups->Map('ID','ID'),
array($adminGroup->ID),
$updatedGroups->column(),
"Removing a previously added toplevel group works"
);