public function SystemLoggerEventTest::testSystemLoggerEvent in Rules 8.3
Tests the event metadata.
File
- tests/
src/ Unit/ Integration/ Event/ SystemLoggerEventTest.php, line 15
Class
- SystemLoggerEventTest
- Checks that the event "rules_system_logger_event" is correctly defined.
Namespace
Drupal\Tests\rules\Unit\Integration\EventCode
public function testSystemLoggerEvent() {
$event = $this->eventManager
->createInstance('rules_system_logger_event');
$logger_entry = $event
->getContextDefinition('logger_entry');
// @todo Create a TypedData logger-entry object: https://www.drupal.org/node/2625238
$this
->assertSame('any', $logger_entry
->getDataType());
}