PathTestBase.php in Zircon Profile 8
Same filename and directory in other branches
Contains \Drupal\path\Tests\PathTestBase.
Namespace
Drupal\path\TestsFile
core/modules/path/src/Tests/PathTestBase.phpView source
<?php
/**
* @file
* Contains \Drupal\path\Tests\PathTestBase.
*/
namespace Drupal\path\Tests;
use Drupal\simpletest\WebTestBase;
/**
* Provides a base class for testing the Path module.
*/
abstract class PathTestBase extends WebTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = array(
'node',
'path',
);
protected function setUp() {
parent::setUp();
// Create Basic page and Article node types.
if ($this->profile != 'standard') {
$this
->drupalCreateContentType(array(
'type' => 'page',
'name' => 'Basic page',
));
$this
->drupalCreateContentType(array(
'type' => 'article',
'name' => 'Article',
));
}
}
}
Classes
Name | Description |
---|---|
PathTestBase | Provides a base class for testing the Path module. |