X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FTests%2FUpdate%2FAutomatedCronUpdateWithoutAutomatedCronTest.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FTests%2FUpdate%2FAutomatedCronUpdateWithoutAutomatedCronTest.php;h=9f76ebd9a46cf7c821c526b8a6e34cbc2ca94e66;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/core/modules/system/src/Tests/Update/AutomatedCronUpdateWithoutAutomatedCronTest.php b/web/core/modules/system/src/Tests/Update/AutomatedCronUpdateWithoutAutomatedCronTest.php new file mode 100644 index 000000000..9f76ebd9a --- /dev/null +++ b/web/core/modules/system/src/Tests/Update/AutomatedCronUpdateWithoutAutomatedCronTest.php @@ -0,0 +1,31 @@ +databaseDumpFiles = [ + __DIR__ . '/../../../tests/fixtures/update/drupal-8.bare.standard.php.gz', + __DIR__ . '/../../../tests/fixtures/update/drupal-8.without_automated_cron.php', + ]; + } + + /** + * Ensures that automated cron module isn't installed and the config migrated. + */ + 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.'); + } + +}