db backup prior to drupal security update
[yaffs-website] / web / core / modules / system / src / Tests / Update / AutomatedCronUpdateWithAutomatedCronTest.php
1 <?php
2
3 namespace Drupal\system\Tests\Update;
4
5 /**
6  * Ensures that the automated cron module is installed on update.
7  *
8  * @group Update
9  */
10 class AutomatedCronUpdateWithAutomatedCronTest extends UpdatePathTestBase {
11
12   /**
13    * {@inheritdoc}
14    */
15   protected function setDatabaseDumpFiles() {
16     $this->databaseDumpFiles = [
17       __DIR__ . '/../../../tests/fixtures/update/drupal-8.bare.standard.php.gz',
18     ];
19   }
20
21   /**
22    * Ensures that automated cron module isn installed and the config migrated.
23    */
24   public function testUpdate() {
25     $this->runUpdates();
26
27     $module_data = \Drupal::config('core.extension')->get('module');
28     $this->assertTrue(isset($module_data['automated_cron']), 'The automated cron module was installed.');
29   }
30
31 }