function AutomatedCronUpdateWithAutomatedCronTest::testUpdate
Ensures that automated cron module isn installed and the config migrated.
File
-
core/
modules/ system/ tests/ src/ Functional/ Update/ AutomatedCronUpdateWithAutomatedCronTest.php, line 32
Class
- AutomatedCronUpdateWithAutomatedCronTest
- Ensures that the automated cron module is installed on update.
Namespace
Drupal\Tests\system\Functional\UpdateCode
public function testUpdate() {
$this->runUpdates();
$module_data = \Drupal::config('core.extension')->get('module');
$this->assertTrue(isset($module_data['automated_cron']), 'The automated cron module was installed.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.