silverstripe-subsites/tests/SubsiteTest.yml

185 lines
4.8 KiB
YAML
Raw Normal View History

2017-05-24 15:25:34 +02:00
SilverStripe\Subsites\Model\Subsite:
main:
Title: 'Template'
subsite1:
Title: 'Subsite1 Template'
subsite2:
Title: 'Subsite2 Template'
domaintest1:
Title: 'Test 1'
domaintest2:
Title: 'Test 2'
domaintest3:
Title: 'Test 3'
2017-05-24 15:25:34 +02:00
SilverStripe\Subsites\Model\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
2010-03-01 03:56:19 +01:00
2016-09-22 16:38:29 +02:00
SilverStripe\Security\PermissionRoleCode:
roleCode1:
Code: CMS_ACCESS_CMSMain
2016-09-22 16:38:29 +02:00
SilverStripe\Security\PermissionRole:
role1:
Title: role1
2016-09-22 16:38:29 +02:00
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
2016-09-22 16:38:29 +02:00
Roles: =>SilverStripe\Security\PermissionRole.role1
SilverStripe\Security\Permission:
admin:
Code: ADMIN
2016-09-22 16:38:29 +02:00
GroupID: =>SilverStripe\Security\Group.admin
editor1:
Code: CMS_ACCESS_CMSMain
2016-09-22 16:38:29 +02:00
GroupID: =>SilverStripe\Security\Group.editor
editor2:
Code: SITETREE_VIEW_ALL
2016-09-22 16:38:29 +02:00
GroupID: =>SilverStripe\Security\Group.editor
editor3:
Code: VIEW_DRAFT_CONTENT
2016-09-22 16:38:29 +02:00
GroupID: =>SilverStripe\Security\Group.editor
accesscmsmain1:
Code: CMS_ACCESS_CMSMain
2016-09-22 16:38:29 +02:00
GroupID: =>SilverStripe\Security\Group.subsite1_group
accesscmsmain2:
Code: CMS_ACCESS_CMSMain
2016-09-22 16:38:29 +02:00
GroupID: =>SilverStripe\Security\Group.subsite2_group
accesscmsmain3:
Code: CMS_ACCESS_CMSMain
2016-09-22 16:38:29 +02:00
GroupID: =>SilverStripe\Security\Group.subsite1admins
accesscmsmain4:
Code: CMS_ACCESS_CMSMain
2016-09-22 16:38:29 +02:00
GroupID: =>SilverStripe\Security\Group.allsubsitesauthors
securityaccess1:
Code: CMS_ACCESS_SecurityAdmin
2016-09-22 16:38:29 +02:00
GroupID: =>SilverStripe\Security\Group.subsite1_group
securityaccess2:
Code: CMS_ACCESS_SecurityAdmin
2016-09-22 16:38:29 +02:00
GroupID: =>SilverStripe\Security\Group.subsite2_group
adminsubsite1:
Code: ADMIN
2016-09-22 16:38:29 +02:00
GroupID: =>SilverStripe\Security\Group.subsite1admins
2010-03-21 23:32:22 +01:00
2016-09-22 16:38:29 +02:00
SilverStripe\Security\Member:
admin:
FirstName: Admin
Surname: User
Email: admin@test.com
Password: rangi
2016-09-22 16:38:29 +02:00
Groups: =>SilverStripe\Security\Group.admin
editor:
FirstName: Editor
Surname: User
Email: editor@test.com
Password: rangi
2016-09-22 16:38:29 +02:00
Groups: =>SilverStripe\Security\Group.editor
subsite1member:
Email: subsite1member@test.com
2016-09-22 16:38:29 +02:00
Groups: =>SilverStripe\Security\Group.subsite1_group
subsite2member:
Email: subsite2member@test.com
2016-09-22 16:38:29 +02:00
Groups: =>SilverStripe\Security\Group.subsite2_group
subsite1admin:
Email: subsite1admin@test.com
2016-09-22 16:38:29 +02:00
Groups: =>SilverStripe\Security\Group.subsite1admins
allsubsitesauthor:
Email: allsubsitesauthor@test.com
2016-09-22 16:38:29 +02:00
Groups: =>SilverStripe\Security\Group.allsubsitesauthors
subsite1member2:
Email: subsite1member2@test.com
2016-09-22 16:38:29 +02:00
Groups: =>SilverStripe\Security\Group.subsite1_group_via_role
2016-09-22 16:38:29 +02:00
SilverStripe\SiteConfig\SiteConfig:
config:
CanCreateTopLevelType: LoggedInUsers