mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: Fixes to GroupTest to handle canEdit() restrictions on the groups
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@75488 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
18e0bcf777
commit
54a5dc543f
@ -27,6 +27,8 @@ class GroupTest extends FunctionalTest {
|
||||
}
|
||||
|
||||
function testMemberGroupRelationForm() {
|
||||
Session::set('loggedInAs', $this->idFromFixture('GroupTest_Member', 'admin'));
|
||||
|
||||
$adminGroup = $this->fixture->objFromFixture('Group', 'admingroup');
|
||||
$parentGroup = $this->fixture->objFromFixture('Group', 'parentgroup');
|
||||
$childGroup = $this->fixture->objFromFixture('Group', 'childgroup');
|
||||
@ -42,6 +44,7 @@ class GroupTest extends FunctionalTest {
|
||||
));
|
||||
$form->saveInto($member);
|
||||
$updatedGroups = $member->Groups();
|
||||
|
||||
$controlGroups = new Member_GroupSet(
|
||||
$adminGroup,
|
||||
$parentGroup
|
||||
|
@ -22,4 +22,8 @@ GroupTest_Member:
|
||||
Groups: =>Group.childgroup
|
||||
allgroupuser:
|
||||
FirstName: All Group User
|
||||
Groups: =>Group.admingroup,=>Group.parentgroup,=>Group.childgroup
|
||||
Groups: =>Group.admingroup,=>Group.parentgroup,=>Group.childgroup
|
||||
Permission:
|
||||
admincode:
|
||||
Code: ADMIN
|
||||
Group: =>Group.admingroup
|
Loading…
x
Reference in New Issue
Block a user