SilverStripe\Subsites\Tests\SubsiteAdminFunctionalTest
Synopsis
class SubsiteAdminFunctionalTest
extends FunctionalTest
{
- // members
- protected static string $fixture_file = 'SubsiteTest.yml';
- protected boolean $autoFollowRedirection = false;
- // methods
- protected void setUp()
- public HTTPResponse getAndFollowAll()
- public void testAnonymousIsForbiddenAdminAccess()
- public void testAdminCanAccessAllSubsites()
- public void testAdminIsRedirectedToObjectsSubsite()
- public void testEditorCanAccessAllSubsites()
- public void testSubsiteAdmin()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Members
protected
- $autoFollowRedirection
- $fixture_file
Methods
protected
public
- getAndFollowAll() — Helper: FunctionalTest is only able to follow redirection once, we want to go all the way.
- testAdminCanAccessAllSubsites() — Admin should be able to access all subsites and the main site
- testAdminIsRedirectedToObjectsSubsite()
- testAnonymousIsForbiddenAdminAccess() — Anonymous user cannot access anything.
- testEditorCanAccessAllSubsites() — User which has AccessAllSubsites set to 1 should be able to access all subsites and main site, even though he does not have the ADMIN permission.
- testSubsiteAdmin() — Test a member who only has access to one subsite (subsite1) and only some sections (pages and security).