silverstripe-subsites/tests/php/SubsiteTest.yml

222 lines
5.7 KiB
YAML
Raw Normal View History

2017-05-24 15:25:34 +02:00
SilverStripe\Subsites\Model\Subsite:
main:
2017-05-29 13:42:42 +02:00
Title: Template
subsite1:
2017-05-29 13:42:42 +02:00
Title: Subsite1 Template
Theme: subsiteTheme
subsite2:
2017-05-29 13:42:42 +02:00
Title: Subsite2 Template
domaintest1:
2017-05-29 13:42:42 +02:00
Title: Test 1
domaintest2:
2017-05-29 13:42:42 +02:00
Title: Test 2
domaintest3:
2017-05-29 13:42:42 +02:00
Title: Test 3
domaintest4:
Title: 'Test SSL'
domaintest5:
Title: 'Test Non-SSL'
2017-05-24 15:25:34 +02:00
SilverStripe\Subsites\Model\SubsiteDomain:
subsite1:
2017-05-24 15:40:58 +02:00
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.subsite1
2017-05-29 13:42:42 +02:00
Domain: subsite1.*
Protocol: automatic
subsite2:
2017-05-24 15:40:58 +02:00
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.subsite2
2017-05-29 13:42:42 +02:00
Domain: subsite2.*
Protocol: automatic
dt1a:
2017-05-24 15:40:58 +02:00
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.domaintest1
2017-05-29 13:42:42 +02:00
Domain: one.example.org
Protocol: automatic
IsPrimary: 1
dt1b:
2017-05-24 15:40:58 +02:00
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.domaintest1
2017-05-29 13:42:42 +02:00
Domain: one.*
Protocol: automatic
dt2a:
2017-05-24 15:40:58 +02:00
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.domaintest2
2017-05-29 13:42:42 +02:00
Domain: two.mysite.com
Protocol: automatic
IsPrimary: 1
dt2b:
2017-05-24 15:40:58 +02:00
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.domaintest2
Domain: '*.mysite.com'
2017-05-29 13:42:42 +02:00
Protocol: automatic
dt3:
2017-05-24 15:40:58 +02:00
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.domaintest3
2017-05-29 13:42:42 +02:00
Domain: three.*
Protocol: automatic
IsPrimary: 1
dt4a:
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.domaintest4
Domain: www.primary.com
Protocol: https
dt4b:
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.domaintest4
Domain: www.secondary.com
Protocol: http
dt5:
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.domaintest5
Domain: www.tertiary.com
Protocol: http
IsPrimary: 1
Page:
2017-05-29 13:42:42 +02:00
mainSubsitePage:
Title: 'MainSubsitePage'
SubsiteID: 0
URLSegment: mainsubsitepage
home:
2017-05-29 13:42:42 +02:00
Title: 'Home'
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.main
URLSegment: home
about:
2017-05-29 13:42:42 +02:00
Title: 'About'
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.main
URLSegment: about
linky:
Title: 'Linky'
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.main
URLSegment: linky
staff:
2017-05-29 13:42:42 +02:00
Title: 'Staff'
ParentID: =>Page.about
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.main
URLSegment: staff
contact:
2017-05-29 13:42:42 +02:00
Title: 'Contact Us'
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.main
URLSegment: contact-us
importantpage:
2017-05-29 13:42:42 +02:00
Title: 'Important Page'
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.main
URLSegment: important-page
subsite1_home:
2017-05-29 13:42:42 +02:00
Title: 'Home (Subsite 1)'
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.subsite1
URLSegment: home
subsite1_contactus:
2017-05-29 13:42:42 +02:00
Title: 'Contact Us (Subsite 1)'
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.subsite1
URLSegment: contact-us
subsite1_staff:
2017-05-29 13:42:42 +02:00
Title: 'Staff'
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.subsite1
URLSegment: staff
subsite2_home:
2017-05-29 13:42:42 +02:00
Title: 'Home (Subsite 2)'
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.subsite2
URLSegment: home
subsite2_contactus:
2017-05-29 13:42:42 +02:00
Title: 'Contact Us (Subsite 2)'
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.subsite2
URLSegment: contact-us
2010-03-01 03:56:19 +01:00
PermissionRoleCode:
roleCode1:
Code: CMS_ACCESS_CMSMain
PermissionRole:
role1:
Title: role1
Codes: =>PermissionRoleCode.roleCode1
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
2017-05-24 15:40:58 +02:00
Subsites: =>SilverStripe\Subsites\Model\Subsite.subsite1
subsite2_group:
Title: subsite2_group
Code: subsite2_group
AccessAllSubsites: 0
2017-05-24 15:40:58 +02:00
Subsites: =>SilverStripe\Subsites\Model\Subsite.subsite2
subsite1admins:
Title: subsite1admins
Code: subsite1admins
AccessAllSubsites: 0
2017-05-24 15:40:58 +02:00
Subsites: =>SilverStripe\Subsites\Model\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: =>PermissionRole.role1
Permission:
admin:
Code: ADMIN
GroupID: =>Group.admin
editor1:
Code: CMS_ACCESS_CMSMain
GroupID: =>Group.editor
editor2:
Code: SITETREE_VIEW_ALL
GroupID: =>Group.editor
editor3:
Code: VIEW_DRAFT_CONTENT
GroupID: =>Group.editor
accesscmsmain1:
Code: CMS_ACCESS_CMSMain
GroupID: =>Group.subsite1_group
accesscmsmain2:
Code: CMS_ACCESS_CMSMain
GroupID: =>Group.subsite2_group
accesscmsmain3:
Code: CMS_ACCESS_CMSMain
GroupID: =>Group.subsite1admins
accesscmsmain4:
Code: CMS_ACCESS_CMSMain
GroupID: =>Group.allsubsitesauthors
securityaccess1:
Code: CMS_ACCESS_SecurityAdmin
GroupID: =>Group.subsite1_group
securityaccess2:
Code: CMS_ACCESS_SecurityAdmin
GroupID: =>Group.subsite2_group
adminsubsite1:
Code: ADMIN
GroupID: =>Group.subsite1admins
2010-03-21 23:32:22 +01:00
Member:
admin:
FirstName: Admin
Surname: User
Email: admin@test.com
Password: rangi
Groups: =>Group.admin
editor:
FirstName: Editor
Surname: User
Email: editor@test.com
Password: rangi
Groups: =>Group.editor
subsite1member:
Email: subsite1member@test.com
Groups: =>Group.subsite1_group
subsite2member:
Email: subsite2member@test.com
Groups: =>Group.subsite2_group
subsite1admin:
Email: subsite1admin@test.com
Groups: =>Group.subsite1admins
allsubsitesauthor:
Email: allsubsitesauthor@test.com
Groups: =>Group.allsubsitesauthors
subsite1member2:
Email: subsite1member2@test.com
Groups: =>Group.subsite1_group_via_role
SiteConfig:
config:
CanCreateTopLevelType: LoggedInUsers