You are here

public function AutomatedCronUpdateWithoutAutomatedCronTest::testUpdate in Drupal 8

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