public function CronEventTest::testCronEvent in Hook Event Dispatcher 3.x
Same name in this branch
- 3.x modules/core_event_dispatcher/tests/src/Kernel/CronEventTest.php \Drupal\Tests\core_event_dispatcher\Kernel\CronEventTest::testCronEvent()
- 3.x modules/core_event_dispatcher/tests/src/Unit/Core/CronEventTest.php \Drupal\Tests\core_event_dispatcher\Unit\Core\CronEventTest::testCronEvent()
Same name and namespace in other branches
- 8.2 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);
}