You are here

protected function PathTestBase::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

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',
    ]);
  }
}