You are here

public function EntityEventTest::testParagraphEvent in Hook Event Dispatcher 8

Test a ParagraphPreprocessEvent.

File

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

Class

EntityEventTest
Class EntityEventTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Preprocess

Code

public function testParagraphEvent() {
  $this->variables = [
    'paragraph' => new EntityMock('paragraph', 'bundle', 'view_mode'),
    'theme_hook_original' => 'paragraph',
    'view_mode' => 'view_mode',
  ];
  $this
    ->createAndAssertEntityEvent(ParagraphPreprocessEvent::class);
}