public function CronEventTest::testCronEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/core_event_dispatcher/tests/src/Unit/Core/CronEventTest.php \Drupal\Tests\core_event_dispatcher\Unit\Core\CronEventTest::testCronEvent()
Test the cron event.
File
- modules/
core_event_dispatcher/ tests/ src/ Unit/ Core/ CronEventTest.php, line 41
Class
- CronEventTest
- Class CronEventTest.
Namespace
Drupal\Tests\core_event_dispatcher\Unit\CoreCode
public function testCronEvent() : void {
core_event_dispatcher_cron();
$event = $this->manager
->getRegisteredEvent(HookEventDispatcherInterface::CRON);
self::assertInstanceOf(CronEvent::class, $event);
}