TaxonomyTestBase.php in Zircon Profile 8
Same filename in this branch
Same filename and directory in other branches
Contains \Drupal\taxonomy\Tests\TaxonomyTestBase.
Namespace
Drupal\taxonomy\TestsFile
core/modules/taxonomy/src/Tests/TaxonomyTestBase.phpView source
<?php
/**
* @file
* Contains \Drupal\taxonomy\Tests\TaxonomyTestBase.
*/
namespace Drupal\taxonomy\Tests;
use Drupal\field\Tests\EntityReference\EntityReferenceTestTrait;
use Drupal\simpletest\WebTestBase;
/**
* Provides common helper methods for Taxonomy module tests.
*/
abstract class TaxonomyTestBase extends WebTestBase {
use TaxonomyTestTrait;
use EntityReferenceTestTrait;
/**
* Modules to enable.
*
* @var array
*/
public static $modules = array(
'taxonomy',
'block',
);
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this
->drupalPlaceBlock('system_breadcrumb_block');
// Create Basic page and Article node types.
if ($this->profile != 'standard') {
$this
->drupalCreateContentType(array(
'type' => 'article',
'name' => 'Article',
));
}
}
}
Classes
Name![]() |
Description |
---|---|
TaxonomyTestBase | Provides common helper methods for Taxonomy module tests. |