TermMergeTestBase.php in Term Merge 8
File
tests/src/Functional/TermMergeTestBase.php
View source
<?php
namespace Drupal\Tests\term_merge\Functional;
use Drupal\Tests\BrowserTestBase;
use Drupal\Tests\field\Traits\EntityReferenceTestTrait;
use Drupal\Tests\taxonomy\Traits\TaxonomyTestTrait;
abstract class TermMergeTestBase extends BrowserTestBase {
use TaxonomyTestTrait;
use EntityReferenceTestTrait;
public static $modules = [
'node',
'taxonomy',
'term_merge',
'term_merge_test_events',
];
protected $contentType;
protected $vocabulary;
protected $user;
protected $defaultTheme = 'stark';
public function setUp() {
parent::setUp();
$this->contentType = $this
->drupalCreateContentType();
$this->vocabulary = $this
->createVocabulary();
$this
->createEntityReferenceField('node', $this->contentType
->id(), 'field_tags', 'Tags', 'taxonomy_term', 'default', [], -1);
}
}