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