silverstripe-subsites/tests/php/SubsiteTest.yml

268 lines
7.6 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'
domaintestVagrant:
Title: 'Test Vagrant VM on port 8080'
subsitelocale:
Title: 'Locale subsite'
Language: 'nl_NL'
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
subsitelocale:
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.subsitelocale
Domain: subsitelocale.*
Protocol: automatic
IsPrimary: 1
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
dtVagrant:
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.domaintestVagrant
Domain: localhost:8080
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
subsite_locale_about:
Title: 'About Locale'
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.subsitelocale
URLSegment: about
2010-03-01 03:56:19 +01:00
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
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: =>SilverStripe\Security\PermissionRole.role1
filetest:
Title: filetest
Code: filetest
AccessAllSubsites: 1
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
filetest:
Code: CMS_ACCESS_CMSMain
GroupID: =>SilverStripe\Security\Group.filetest
2010-03-21 23:32:22 +01:00
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
filetestyes:
Email: filetestyes@test.com
Groups: =>SilverStripe\Security\Group.filetest
filetestno:
Email: filetestno@test.com
SilverStripe\SiteConfig\SiteConfig:
config:
CanCreateTopLevelType: LoggedInUsers
SilverStripe\Assets\File:
subsite1file:
Name: subsitefile.pdf
Title: subsitefile
SubsiteID: =>SilverStripe\Subsites\Model\Subsite.subsite1
CanEditType: OnlyTheseUsers
EditorGroups: =>SilverStripe\Security\Group.filetest
mainsitefile:
Name: mainsitefile.pdf
Title: mainsitefile
SubsiteID: 0
CanEditType: OnlyTheseUsers
EditorGroups: =>SilverStripe\Security\Group.filetest