TaxonomyTestBase.php in Drupal 8
File
core/modules/taxonomy/src/Tests/TaxonomyTestBase.php
View source
<?php
namespace Drupal\taxonomy\Tests;
@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);
use Drupal\simpletest\WebTestBase;
use Drupal\Tests\field\Traits\EntityReferenceTestTrait;
use Drupal\Tests\taxonomy\Traits\TaxonomyTestTrait;
abstract class TaxonomyTestBase extends WebTestBase {
use TaxonomyTestTrait;
use EntityReferenceTestTrait;
public static $modules = [
'taxonomy',
'block',
];
protected function setUp() {
parent::setUp();
$this
->drupalPlaceBlock('system_breadcrumb_block');
if ($this->profile != 'standard') {
$this
->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
}
}
}
Classes
Name |
Description |
TaxonomyTestBase Deprecated |
Provides common helper methods for Taxonomy module tests. |