Mercurial > hg > isophonics-drupal-site
comparison core/modules/path/tests/src/Functional/PathTestBase.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Tests\path\Functional; | |
4 | |
5 use Drupal\Tests\BrowserTestBase; | |
6 | |
7 /** | |
8 * Provides a base class for testing the Path module. | |
9 */ | |
10 abstract class PathTestBase extends BrowserTestBase { | |
11 | |
12 /** | |
13 * Modules to enable. | |
14 * | |
15 * @var array | |
16 */ | |
17 public static $modules = ['node', 'path']; | |
18 | |
19 protected function setUp() { | |
20 parent::setUp(); | |
21 | |
22 // Create Basic page and Article node types. | |
23 if ($this->profile != 'standard') { | |
24 $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']); | |
25 $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']); | |
26 } | |
27 } | |
28 | |
29 } |