public function OtherEventVariablesTest::testImageEvent in Hook Event Dispatcher 8
Test a ImagePreprocessEvent.
File
- tests/
src/ Unit/ Preprocess/ OtherEventVariablesTest.php, line 122
Class
- OtherEventVariablesTest
- Class OtherEventVariablesTest.
Namespace
Drupal\Tests\hook_event_dispatcher\Unit\PreprocessCode
public function testImageEvent() {
$variablesArray = $this
->createVariablesArray();
/** @var \Drupal\hook_event_dispatcher\Event\Preprocess\Variables\ImageEventVariables $variables */
$variables = $this
->getVariablesFromCreatedEvent(ImagePreprocessEvent::class, $variablesArray);
self::assertInstanceOf(ImageEventVariables::class, $variables);
$this
->assertAbstractEventVariables($variables);
}