public function AutomatedCronUpdateWithoutAutomatedCronTest::testUpdate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Update/AutomatedCronUpdateWithoutAutomatedCronTest.php \Drupal\system\Tests\Update\AutomatedCronUpdateWithoutAutomatedCronTest::testUpdate()
Ensures that automated cron module isn't installed and the config migrated.
File
- core/
modules/ system/ src/ Tests/ Update/ AutomatedCronUpdateWithoutAutomatedCronTest.php, line 30 - Contains \Drupal\system\Tests\Update\AutomatedCronUpdateWithoutAutomatedCronTest.
Class
- AutomatedCronUpdateWithoutAutomatedCronTest
- Ensures that the automated cron module is not installed on update.
Namespace
Drupal\system\Tests\UpdateCode
public function testUpdate() {
$this
->runUpdates();
$module_data = \Drupal::config('core.extension')
->get('module');
$this
->assertFalse(isset($module_data['automated_cron']), 'The automated cron module was not installed.');
}