PathTestBase.php in Drupal 9
File
core/modules/path/tests/src/Functional/PathTestBase.php
View source
<?php
namespace Drupal\Tests\path\Functional;
use Drupal\Tests\BrowserTestBase;
use Drupal\Tests\Traits\Core\PathAliasTestTrait;
abstract class PathTestBase extends BrowserTestBase {
use PathAliasTestTrait;
protected static $modules = [
'node',
'path',
];
protected function setUp() {
parent::setUp();
if ($this->profile != 'standard') {
$this
->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
]);
$this
->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
}
}
}
Classes
Name |
Description |
PathTestBase |
Provides a base class for testing the Path module. |