public function HooksTest::testCron in Lightning Core 8.3
Same name and namespace in other branches
- 8.4 modules/acquia_telemetry/tests/src/Kernel/HooksTest.php \Drupal\Tests\acquia_telemetry\Kernel\HooksTest::testCron()
File
- modules/
acquia_telemetry/ tests/ src/ Kernel/ HooksTest.php, line 31
Class
- HooksTest
- @group lightning @group lightning_core @group acquia_telemetry
Namespace
Drupal\Tests\acquia_telemetry\KernelCode
public function testCron() {
$this->telemetry
->sendTelemetry('Drupal cron ran')
->shouldBeCalled();
$this->container
->get('cron')
->run();
}