function AutomatedCronUpdateWithoutAutomatedCronTest::testUpdate

Ensures that automated cron module isn't installed and the config migrated.

File

core/modules/system/tests/src/Functional/Update/AutomatedCronUpdateWithoutAutomatedCronTest.php, line 33

Class

AutomatedCronUpdateWithoutAutomatedCronTest
Ensures that the automated cron module is not installed on update.

Namespace

Drupal\Tests\system\Functional\Update

Code

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.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.