function PathTestBase::setUp

Same name in other branches
  1. 8.9.x core/modules/path/src/Tests/PathTestBase.php \Drupal\path\Tests\PathTestBase::setUp()
  2. 8.9.x core/modules/path/tests/src/Functional/PathTestBase.php \Drupal\Tests\path\Functional\PathTestBase::setUp()
  3. 10 core/modules/path/tests/src/Functional/PathTestBase.php \Drupal\Tests\path\Functional\PathTestBase::setUp()
  4. 11.x 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 25

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.