function PathTestBase::setUp
Same name and namespace in other branches
- 11.x core/modules/path/tests/src/Functional/PathTestBase.php \Drupal\Tests\path\Functional\PathTestBase::setUp()
1 method overrides PathTestBase::setUp()
- PathNodeFormTest::setUp in core/
modules/ path/ tests/ src/ Functional/ PathNodeFormTest.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() {
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.