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