SilverStripe\MultiDomain\Tests\MultiDomainTest
Synopsis
class MultiDomainTest
extends SapphireTest
{
- // methods
- public void setUp()
- public void testGetDomain()
- public void testGetAllDomains()
- public array getAllDomainsProvider()
- public void testGetPrimaryDomain()
- public void testDomainForUrl()
- public void testDomainForUrlDefaultsToPrimaryDomain()
- public void tearDown()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Methods
public
- getAllDomainsProvider()
- setUp() — Set up some test domain configuration
- tearDown()
- testDomainForUrl() — Test that the correct domain can be returned by a provided URL
- testDomainForUrlDefaultsToPrimaryDomain() — Test that if a URL doesn't match any domain then the primary domain is returned
- testGetAllDomains() — Test that all domains can be returned, with or without the primary domain
- testGetDomain() — Test that a MultiDomainDomain can be returned from the configured domains
- testGetPrimaryDomain() — Test that the primary domain can be returned