public function OtherEventVariablesTest::testImageEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/tests/src/Unit/OtherEventVariablesTest.php \Drupal\Tests\preprocess_event_dispatcher\Unit\OtherEventVariablesTest::testImageEvent()
Test a ImagePreprocessEvent.
File
- modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ OtherEventVariablesTest.php, line 146
Class
- OtherEventVariablesTest
- Class OtherEventVariablesTest.
Namespace
Drupal\Tests\preprocess_event_dispatcher\UnitCode
public function testImageEvent() : void {
$variablesArray = $this
->createVariablesArray();
/** @var \Drupal\preprocess_event_dispatcher\Variables\ImageEventVariables $variables */
$variables = $this
->getVariablesFromCreatedEvent(ImagePreprocessEvent::class, $variablesArray);
self::assertInstanceOf(ImageEventVariables::class, $variables);
$this
->assertAbstractEventVariables($variables);
}