function PathTestBase::setUp
Same name in other branches
- 9 core/modules/path/tests/src/Functional/PathTestBase.php \Drupal\Tests\path\Functional\PathTestBase::setUp()
- 8.9.x core/modules/path/src/Tests/PathTestBase.php \Drupal\path\Tests\PathTestBase::setUp()
- 8.9.x core/modules/path/tests/src/Functional/PathTestBase.php \Drupal\Tests\path\Functional\PathTestBase::setUp()
- 11.x core/modules/path/tests/src/Functional/PathTestBase.php \Drupal\Tests\path\Functional\PathTestBase::setUp()
Overrides BrowserTestBase::setUp
8 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
8 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
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\FunctionalCode
protected function setUp() : void {
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.