ed8b95f60624c5f2360931955dd253ea1e86b109
[yaffs-website] / web / core / modules / taxonomy / tests / src / Functional / TaxonomyTestBase.php
1 <?php
2
3 namespace Drupal\Tests\taxonomy\Functional;
4
5 use Drupal\field\Tests\EntityReference\EntityReferenceTestTrait;
6 use Drupal\Tests\BrowserTestBase;
7 use Drupal\taxonomy\Tests\TaxonomyTestTrait;
8
9 /**
10  * Provides common helper methods for Taxonomy module tests.
11  */
12 abstract class TaxonomyTestBase extends BrowserTestBase {
13
14   use TaxonomyTestTrait;
15   use EntityReferenceTestTrait;
16
17   /**
18    * Modules to enable.
19    *
20    * @var array
21    */
22   public static $modules = ['taxonomy', 'block'];
23
24   /**
25    * {@inheritdoc}
26    */
27   protected function setUp() {
28     parent::setUp();
29     $this->drupalPlaceBlock('system_breadcrumb_block');
30
31     // Create Basic page and Article node types.
32     if ($this->profile != 'standard') {
33       $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']);
34     }
35   }
36
37 }