silverstripe-subsites/tests/SubsiteTest.yml
2016-09-23 09:34:23 +01:00

185 lines
4.7 KiB
YAML

Subsite:
main:
Title: 'Template'
subsite1:
Title: 'Subsite1 Template'
subsite2:
Title: 'Subsite2 Template'
domaintest1:
Title: 'Test 1'
domaintest2:
Title: 'Test 2'
domaintest3:
Title: 'Test 3'
SubsiteDomain:
subsite1:
SubsiteID: =>Subsite.subsite1
Domain: 'subsite1.*'
subsite2:
SubsiteID: =>Subsite.subsite2
Domain: 'subsite2.*'
dt1a:
SubsiteID: =>Subsite.domaintest1
Domain: 'one.example.org'
IsPrimary: 1
dt1b:
SubsiteID: =>Subsite.domaintest1
Domain: 'one.*'
dt2a:
SubsiteID: =>Subsite.domaintest2
Domain: 'two.mysite.com'
IsPrimary: 1
dt2b:
SubsiteID: =>Subsite.domaintest2
Domain: '*.mysite.com'
dt3:
SubsiteID: =>Subsite.domaintest3
Domain: 'three.*'
IsPrimary: 1
Page:
mainSubsitePage:
Title: 'MainSubsitePage'
SubsiteID: 0
home:
Title: 'Home'
SubsiteID: =>Subsite.main
about:
Title: 'About'
SubsiteID: =>Subsite.main
linky:
Title: 'Linky'
SubsiteID: =>Subsite.main
staff:
Title: 'Staff'
ParentID: =>Page.about
SubsiteID: =>Subsite.main
contact:
Title: 'Contact Us'
SubsiteID: =>Subsite.main
importantpage:
Title: 'Important Page'
SubsiteID: =>Subsite.main
subsite1_home:
Title: 'Home (Subsite 1)'
SubsiteID: =>Subsite.subsite1
subsite1_contactus:
Title: 'Contact Us (Subsite 1)'
SubsiteID: =>Subsite.subsite1
subsite1_staff:
Title: 'Staff'
SubsiteID: =>Subsite.subsite1
subsite2_home:
Title: 'Home (Subsite 2)'
SubsiteID: =>Subsite.subsite2
subsite2_contactus:
Title: 'Contact Us (Subsite 2)'
SubsiteID: =>Subsite.subsite2
SilverStripe\Security\PermissionRoleCode:
roleCode1:
Code: CMS_ACCESS_CMSMain
SilverStripe\Security\PermissionRole:
role1:
Title: role1
Codes: =>SilverStripe\Security\PermissionRoleCode.roleCode1
SilverStripe\Security\Group:
admin:
Title: Admin
Code: admin
AccessAllSubsites: 1
editor:
Title: Editor
Code: editor
AccessAllSubsites: 1
subsite1_group:
Title: subsite1_group
Code: subsite1_group
AccessAllSubsites: 0
Subsites: =>Subsite.subsite1
subsite2_group:
Title: subsite2_group
Code: subsite2_group
AccessAllSubsites: 0
Subsites: =>Subsite.subsite2
subsite1admins:
Title: subsite1admins
Code: subsite1admins
AccessAllSubsites: 0
Subsites: =>Subsite.subsite1
allsubsitesauthors:
Title: allsubsitesauthors
Code: allsubsitesauthors
AccessAllSubsites: 1
subsite1_group_via_role:
Title: subsite1_group_via_role
Code: subsite1_group_via_role
AccessAllSubsites: 1
Roles: =>SilverStripe\Security\PermissionRole.role1
SilverStripe\Security\Permission:
admin:
Code: ADMIN
GroupID: =>SilverStripe\Security\Group.admin
editor1:
Code: CMS_ACCESS_CMSMain
GroupID: =>SilverStripe\Security\Group.editor
editor2:
Code: SITETREE_VIEW_ALL
GroupID: =>SilverStripe\Security\Group.editor
editor3:
Code: VIEW_DRAFT_CONTENT
GroupID: =>SilverStripe\Security\Group.editor
accesscmsmain1:
Code: CMS_ACCESS_CMSMain
GroupID: =>SilverStripe\Security\Group.subsite1_group
accesscmsmain2:
Code: CMS_ACCESS_CMSMain
GroupID: =>SilverStripe\Security\Group.subsite2_group
accesscmsmain3:
Code: CMS_ACCESS_CMSMain
GroupID: =>SilverStripe\Security\Group.subsite1admins
accesscmsmain4:
Code: CMS_ACCESS_CMSMain
GroupID: =>SilverStripe\Security\Group.allsubsitesauthors
securityaccess1:
Code: CMS_ACCESS_SecurityAdmin
GroupID: =>SilverStripe\Security\Group.subsite1_group
securityaccess2:
Code: CMS_ACCESS_SecurityAdmin
GroupID: =>SilverStripe\Security\Group.subsite2_group
adminsubsite1:
Code: ADMIN
GroupID: =>SilverStripe\Security\Group.subsite1admins
SilverStripe\Security\Member:
admin:
FirstName: Admin
Surname: User
Email: admin@test.com
Password: rangi
Groups: =>SilverStripe\Security\Group.admin
editor:
FirstName: Editor
Surname: User
Email: editor@test.com
Password: rangi
Groups: =>SilverStripe\Security\Group.editor
subsite1member:
Email: subsite1member@test.com
Groups: =>SilverStripe\Security\Group.subsite1_group
subsite2member:
Email: subsite2member@test.com
Groups: =>SilverStripe\Security\Group.subsite2_group
subsite1admin:
Email: subsite1admin@test.com
Groups: =>SilverStripe\Security\Group.subsite1admins
allsubsitesauthor:
Email: allsubsitesauthor@test.com
Groups: =>SilverStripe\Security\Group.allsubsitesauthors
subsite1member2:
Email: subsite1member2@test.com
Groups: =>SilverStripe\Security\Group.subsite1_group_via_role
SilverStripe\SiteConfig\SiteConfig:
config:
CanCreateTopLevelType: LoggedInUsers