You are here

protected function DomainPathTestBase::setUp in Domain Path 8

Overrides DomainTestBase::setUp

2 calls to DomainPathTestBase::setUp()
DomainPathCreateTest::setUp in tests/src/Functional/DomainPathCreateTest.php
DomainPathNodeAliasTest::setUp in tests/src/Functional/DomainPathNodeAliasTest.php
2 methods override DomainPathTestBase::setUp()
DomainPathCreateTest::setUp in tests/src/Functional/DomainPathCreateTest.php
DomainPathNodeAliasTest::setUp in tests/src/Functional/DomainPathNodeAliasTest.php

File

tests/src/Functional/DomainPathTestBase.php, line 43

Class

DomainPathTestBase

Namespace

Drupal\Tests\domain_path\Functional

Code

protected function setUp() {
  parent::setUp();

  // Create Basic page and Article node types.
  if ($this->profile != 'standard') {
    $this
      ->drupalCreateContentType([
      'type' => 'page',
      'name' => 'Basic page',
    ]);
  }

  // Create domains.
  $this
    ->domainCreateTestDomains(2);
  $this->domains = $this
    ->getDomains();
  $this
    ->domainPathBasicSetup();
}