mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
MINOR Code formatting
This commit is contained in:
parent
0cf41dcc15
commit
fbe9eec50b
@ -57,15 +57,25 @@ class SubsiteTest extends SapphireTest {
|
||||
* Confirm that domain lookup is working
|
||||
*/
|
||||
function testDomainLookup() {
|
||||
$this->assertEquals($this->idFromFixture('Subsite','domaintest1'),
|
||||
Subsite::getSubsiteIDForDomain('one.example.org'));
|
||||
$this->assertEquals($this->idFromFixture('Subsite','domaintest1'),
|
||||
Subsite::getSubsiteIDForDomain('one.localhost'));
|
||||
$this->assertEquals(
|
||||
$this->idFromFixture('Subsite','domaintest1'),
|
||||
Subsite::getSubsiteIDForDomain('one.example.org')
|
||||
);
|
||||
|
||||
$this->assertEquals(
|
||||
$this->idFromFixture('Subsite','domaintest1'),
|
||||
Subsite::getSubsiteIDForDomain('one.localhost')
|
||||
);
|
||||
|
||||
$this->assertEquals($this->idFromFixture('Subsite','domaintest2'),
|
||||
Subsite::getSubsiteIDForDomain('two.mysite.com'));
|
||||
$this->assertEquals($this->idFromFixture('Subsite','domaintest2'),
|
||||
Subsite::getSubsiteIDForDomain('other.mysite.com'));
|
||||
$this->assertEquals(
|
||||
$this->idFromFixture('Subsite','domaintest2'),
|
||||
Subsite::getSubsiteIDForDomain('two.mysite.com')
|
||||
);
|
||||
|
||||
$this->assertEquals(
|
||||
$this->idFromFixture('Subsite','domaintest2'),
|
||||
Subsite::getSubsiteIDForDomain('other.mysite.com')
|
||||
);
|
||||
|
||||
$this->assertEquals(0, Subsite::getSubsiteIDForDomain('other.example.com'));
|
||||
$this->assertEquals(0, Subsite::getSubsiteIDForDomain('two.example.com'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user