You are here

protected function PathTestBase::setUp in Drupal 8

Same name in this branch
  1. 8 core/modules/path/src/Tests/PathTestBase.php \Drupal\path\Tests\PathTestBase::setUp()
  2. 8 core/modules/path/tests/src/Functional/PathTestBase.php \Drupal\Tests\path\Functional\PathTestBase::setUp()
Same name and namespace in other branches
  1. 9 core/modules/path/tests/src/Functional/PathTestBase.php \Drupal\Tests\path\Functional\PathTestBase::setUp()

Overrides BrowserTestBase::setUp

7 calls to PathTestBase::setUp()
PathAdminTest::setUp in core/modules/path/tests/src/Functional/PathAdminTest.php
PathAliasTest::setUp in core/modules/path/tests/src/Functional/PathAliasTest.php
PathLanguageTest::setUp in core/modules/path/tests/src/Functional/PathLanguageTest.php
PathLanguageUiTest::setUp in core/modules/path/tests/src/Functional/PathLanguageUiTest.php
PathMediaFormTest::setUp in core/modules/path/tests/src/Functional/PathMediaFormTest.php

... See full list

7 methods override PathTestBase::setUp()
PathAdminTest::setUp in core/modules/path/tests/src/Functional/PathAdminTest.php
PathAliasTest::setUp in core/modules/path/tests/src/Functional/PathAliasTest.php
PathLanguageTest::setUp in core/modules/path/tests/src/Functional/PathLanguageTest.php
PathLanguageUiTest::setUp in core/modules/path/tests/src/Functional/PathLanguageUiTest.php
PathMediaFormTest::setUp in core/modules/path/tests/src/Functional/PathMediaFormTest.php

... See full list

File

core/modules/path/tests/src/Functional/PathTestBase.php, line 22

Class

PathTestBase
Provides a base class for testing the Path module.

Namespace

Drupal\Tests\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',
    ]);
    $this
      ->drupalCreateContentType([
      'type' => 'article',
      'name' => 'Article',
    ]);
  }
}