protected function DomainTestBase::setUp in Domain Access 8
Overrides BrowserTestBase::setUp
30 calls to DomainTestBase::setUp()
- ActiveDomainDefaultArgumentTest::setUp in domain/
tests/ src/ Functional/ Views/ ActiveDomainDefaultArgumentTest.php - DomainAccessContentUrlsTest::setUp in domain_access/
tests/ src/ Functional/ DomainAccessContentUrlsTest.php - DomainAccessElementTest::setUp in domain_access/
tests/ src/ Functional/ DomainAccessElementTest.php - DomainAccessEntityFieldTest::setUp in domain_access/
tests/ src/ Functional/ DomainAccessEntityFieldTest.php - DomainAccessFieldTest::setUp in domain_access/
tests/ src/ Functional/ DomainAccessFieldTest.php
30 methods override DomainTestBase::setUp()
- ActiveDomainDefaultArgumentTest::setUp in domain/
tests/ src/ Functional/ Views/ ActiveDomainDefaultArgumentTest.php - DomainAccessContentUrlsTest::setUp in domain_access/
tests/ src/ Functional/ DomainAccessContentUrlsTest.php - DomainAccessElementTest::setUp in domain_access/
tests/ src/ Functional/ DomainAccessElementTest.php - DomainAccessEntityFieldTest::setUp in domain_access/
tests/ src/ Functional/ DomainAccessEntityFieldTest.php - DomainAccessFieldTest::setUp in domain_access/
tests/ src/ Functional/ DomainAccessFieldTest.php
File
- domain/
tests/ src/ Functional/ DomainTestBase.php, line 64
Class
- DomainTestBase
- Class DomainTestBase.
Namespace
Drupal\Tests\domain\FunctionalCode
protected function setUp() {
parent::setUp();
// Set the base hostname for domains.
$this->baseHostname = \Drupal::entityTypeManager()
->getStorage('domain')
->createHostname();
// Ensure that $this->baseTLD is set.
$this
->setBaseTLD();
$this->database = $this
->getDatabaseConnection();
}