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