You are here

protected function RePublishDependencyChangesTest::setUp in Acquia Content Hub 8.2

Throws

\Exception

Overrides QueueingTestBase::setUp

File

tests/src/Kernel/RePublishDependencyChangesTest.php, line 76

Class

RePublishDependencyChangesTest
Tests that entities whose depcalc cache got invalidated are republished.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('path_alias');
  $this
    ->installEntitySchema('taxonomy_term');
  $this
    ->installEntitySchema('user');
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installEntitySchema('field_config');
  $this->vocabulary = $this
    ->createVocabulary();
  NodeType::create([
    'type' => 'bundle_test',
  ])
    ->save();
  $this
    ->createEntityReferenceField('node', 'bundle_test', 'taxonomy_reference', 'taxonomy_reference', 'taxonomy_term');
  $this->term = $this
    ->createTerm($this->vocabulary, [
    'name' => 'Test',
  ]);
}