You are here

TaxonomyTestBase.php in Zircon Profile 8

File

core/modules/taxonomy/src/Tests/TaxonomyTestBase.php
View 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

Namesort descending Description
TaxonomyTestBase Provides common helper methods for Taxonomy module tests.