public function DomainTestTrait::setBaseTLD in Domain Access 8
Set the base TLD for this test.
2 calls to DomainTestTrait::setBaseTLD()
- DomainTestBase::setUp in domain/
tests/ src/ Functional/ DomainTestBase.php - DomainTestTrait::setBaseHostname in domain/
tests/ src/ Traits/ DomainTestTrait.php - Set the base hostname for this test.
File
- domain/
tests/ src/ Traits/ DomainTestTrait.php, line 147
Class
- DomainTestTrait
- Contains helper classes for tests to set up various configuration.
Namespace
Drupal\Tests\domain\TraitsCode
public function setBaseTLD() {
$hostname = $this->baseHostname;
$parts = explode('.', $hostname);
$this->baseTLD = array_pop($parts);
}