You are here

public function EntityEventTest::testTaxonomyTermEvent in Hook Event Dispatcher 8

Test a TaxonomyTermPreprocessEvent.

File

tests/src/Unit/Preprocess/EntityEventTest.php, line 111

Class

EntityEventTest
Class EntityEventTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Preprocess

Code

public function testTaxonomyTermEvent() {
  $this->variables = [
    'term' => new EntityMock('taxonomy_term', 'bundle', 'view_mode'),
    'theme_hook_original' => 'taxonomy_term',
    'view_mode' => 'view_mode',
  ];
  $this
    ->createAndAssertEntityEvent(TaxonomyTermPreprocessEvent::class);
}