3 namespace Drupal\taxonomy\Tests;
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);
7 use Drupal\field\Tests\EntityReference\EntityReferenceTestTrait;
8 use Drupal\simpletest\WebTestBase;
9 use Drupal\Tests\taxonomy\Functional\TaxonomyTestTrait;
12 * Provides common helper methods for Taxonomy module tests.
14 * @deprecated Scheduled for removal in Drupal 9.0.0.
15 * Use \Drupal\Tests\taxonomy\Functional\TaxonomyTestBase instead.
17 abstract class TaxonomyTestBase extends WebTestBase {
19 use TaxonomyTestTrait;
20 use EntityReferenceTestTrait;
27 public static $modules = ['taxonomy', 'block'];
32 protected function setUp() {
34 $this->drupalPlaceBlock('system_breadcrumb_block');
36 // Create Basic page and Article node types.
37 if ($this->profile != 'standard') {
38 $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']);