comparison core/modules/path/src/Tests/PathTestBase.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children af1871eacc83
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
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 }