1<?php
2
3namespace Drupal\Tests\taxonomy\Functional;
4
5use Drupal\Tests\BrowserTestBase;
6use Drupal\Tests\field\Traits\EntityReferenceTestTrait;
7use Drupal\Tests\taxonomy\Traits\TaxonomyTestTrait;
8
9/**
10 * Provides common helper methods for Taxonomy module tests.
11 */
12abstract class TaxonomyTestBase extends BrowserTestBase {
13
14  use TaxonomyTestTrait;
15  use EntityReferenceTestTrait;
16
17  /**
18   * Modules to enable.
19   *
20   * @var array
21   */
22  protected 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}
38