silverstripe-framework/tests/security/MemberTest.yml
Sean Harvey 06b7dc5de3 BUGFIX #4686 Fixed $member non-object error, and decorated checks from not working in Member::canView(), Member::canEdit() and Member::canDelete()
MINOR Added additional tests to MemberTest


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@94358 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 14:17:57 +13:00

54 lines
1.4 KiB
YAML

Permission:
security-admin:
Code: CMS_ACCESS_SecurityAdmin
Group:
securityadminsgroup:
Title: securityadminsgroup
Code: securityadminsgroup
Permissions: =>Permission.security-admin
staffgroup:
Title: staffgroup
Code: staffgroup
managementgroup:
Title: managementgroup
Code: managementgroup
Parent: =>Group.staffgroup
accountinggroup:
Title: accountinggroup
Code: accountinggroup
Parent: =>Group.staffgroup
ceogroup:
Title: ceogroup
Code: ceogroup
Parent: =>Group.managementgroup
Member:
test:
FirstName: Test
Surname: User
Email: sam@silverstripe.com
Password: 1nitialPassword
PasswordExpiry: 2030-01-01
Groups: =>Group.securityadminsgroup
expiredpassword:
FirstName: Test
Surname: User
Email: expired@silverstripe.com
Password: 1nitialPassword
PasswordExpiry: 2006-01-01
noexpiry:
FirstName: Test
Surname: User
Email: noexpiry@silverstripe.com
Password: 1nitialPassword
staffmember:
Email: staffmember@test.com
Groups: =>Group.staffgroup
managementmember:
Email: managementmember@test.com
Groups: =>Group.managementgroup
accountingmember:
Email: accountingmember@test.com
Groups: =>Group.accountinggroup
ceomember:
Email: ceomember@test.com
Groups: =>Group.ceogroup