Version 1
[yaffs-website] / web / core / modules / path / src / Tests / PathTestBase.php
1 <?php
2
3 namespace Drupal\path\Tests;
4
5 use Drupal\simpletest\WebTestBase;
6
7 /**
8  * Provides a base class for testing the Path module.
9  *
10  * @deprecated Scheduled for removal in Drupal 9.0.0.
11  *   Use \Drupal\Tests\path\Functional\PathTestBase instead.
12  */
13 abstract class PathTestBase extends WebTestBase {
14
15   /**
16    * Modules to enable.
17    *
18    * @var array
19    */
20   public static $modules = ['node', 'path'];
21
22   protected function setUp() {
23     parent::setUp();
24
25     // Create Basic page and Article node types.
26     if ($this->profile != 'standard') {
27       $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']);
28       $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']);
29     }
30   }
31
32 }