Mercurial > hg > isophonics-drupal-site
view core/modules/taxonomy/tests/src/Functional/TaxonomyTestBase.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line source
<?php namespace Drupal\Tests\taxonomy\Functional; use Drupal\Tests\BrowserTestBase; use Drupal\Tests\field\Traits\EntityReferenceTestTrait; /** * Provides common helper methods for Taxonomy module tests. */ abstract class TaxonomyTestBase extends BrowserTestBase { use TaxonomyTestTrait; use EntityReferenceTestTrait; /** * Modules to enable. * * @var array */ public static $modules = ['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(['type' => 'article', 'name' => 'Article']); } } }