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