You are here

public function OtherEventVariablesTest::testHtmlEvent in Hook Event Dispatcher 8

Test a HtmlPreprocessEvent.

File

tests/src/Unit/Preprocess/OtherEventVariablesTest.php, line 110

Class

OtherEventVariablesTest
Class OtherEventVariablesTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Preprocess

Code

public function testHtmlEvent() {
  $variablesArray = $this
    ->createVariablesArray();

  /** @var \Drupal\hook_event_dispatcher\Event\Preprocess\Variables\HtmlEventVariables $variables */
  $variables = $this
    ->getVariablesFromCreatedEvent(HtmlPreprocessEvent::class, $variablesArray);
  self::assertInstanceOf(HtmlEventVariables::class, $variables);
  $this
    ->assertAbstractEventVariables($variables);
}