protected function DomainSourceLanguageTest::setUp in Domain Access 8
Overrides DomainTestBase::setUp
File
- domain_source/
tests/ src/ Functional/ DomainSourceLanguageTest.php, line 35
Class
- DomainSourceLanguageTest
- Tests behavior for the rewriting links using core URL methods.
Namespace
Drupal\Tests\domain_source\FunctionalCode
protected function setUp() {
parent::setUp();
// Create 5 domains.
DomainTestBase::domainCreateTestDomains(3);
// Add Hungarian and Afrikaans.
ConfigurableLanguage::createFromLangcode('hu')
->save();
ConfigurableLanguage::createFromLangcode('af')
->save();
// Enable content translation for the current entity type.
\Drupal::service('content_translation.manager')
->setEnabled('node', 'page', TRUE);
}