public function ReferenceFinderTest::setUp in Term reference change 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ ReferenceFinderTest.php, line 68
Class
- ReferenceFinderTest
- Tests entities referencing a term are found.
Namespace
Drupal\Tests\term_reference_change\KernelCode
public function setUp() {
parent::setUp();
$this
->installConfig([
'filter',
]);
$this
->installSchema('system', 'sequences');
$this
->installSchema('node', 'node_access');
$this
->installEntitySchema('taxonomy_term');
$this
->installEntitySchema('taxonomy_vocabulary');
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
$this
->installConfig('node');
$this
->setUpContentType();
$this
->setUpReferencingVocabulary();
$this->entityTypeManager = \Drupal::entityTypeManager();
$this->targetVocabulary = $this
->createVocabulary();
$this->termStorage = $this->entityTypeManager
->getStorage('taxonomy_term');
}