You are here

public function AutomatedCronUpdateWithAutomatedCronTest::testUpdate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Update/AutomatedCronUpdateWithAutomatedCronTest.php \Drupal\system\Tests\Update\AutomatedCronUpdateWithAutomatedCronTest::testUpdate()

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

File

core/modules/system/src/Tests/Update/AutomatedCronUpdateWithAutomatedCronTest.php, line 29
Contains \Drupal\system\Tests\Update\AutomatedCronUpdateWithAutomatedCronTest.

Class

AutomatedCronUpdateWithAutomatedCronTest
Ensures that the automated cron module is installed on update.

Namespace

Drupal\system\Tests\Update

Code

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