MINOR Code formatting

This commit is contained in:
Ingo Schommer 2011-09-09 10:33:43 +02:00
parent 0cf41dcc15
commit fbe9eec50b

View File

@ -57,15 +57,25 @@ class SubsiteTest extends SapphireTest {
* Confirm that domain lookup is working * Confirm that domain lookup is working
*/ */
function testDomainLookup() { function testDomainLookup() {
$this->assertEquals($this->idFromFixture('Subsite','domaintest1'), $this->assertEquals(
Subsite::getSubsiteIDForDomain('one.example.org')); $this->idFromFixture('Subsite','domaintest1'),
$this->assertEquals($this->idFromFixture('Subsite','domaintest1'), Subsite::getSubsiteIDForDomain('one.example.org')
Subsite::getSubsiteIDForDomain('one.localhost')); );
$this->assertEquals($this->idFromFixture('Subsite','domaintest2'), $this->assertEquals(
Subsite::getSubsiteIDForDomain('two.mysite.com')); $this->idFromFixture('Subsite','domaintest1'),
$this->assertEquals($this->idFromFixture('Subsite','domaintest2'), Subsite::getSubsiteIDForDomain('one.localhost')
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('other.example.com'));
$this->assertEquals(0, Subsite::getSubsiteIDForDomain('two.example.com')); $this->assertEquals(0, Subsite::getSubsiteIDForDomain('two.example.com'));