Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / system / tests / src / Functional / Update / AutomatedCronUpdateWithoutAutomatedCronTest.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 not installed on update.
9  *
10  * @group Update
11  * @group legacy
12  */
13 class AutomatedCronUpdateWithoutAutomatedCronTest extends UpdatePathTestBase {
14
15   /**
16    * {@inheritdoc}
17    */
18   protected function setDatabaseDumpFiles() {
19     $this->databaseDumpFiles = [
20       __DIR__ . '/../../../../tests/fixtures/update/drupal-8.bare.standard.php.gz',
21       __DIR__ . '/../../../../tests/fixtures/update/drupal-8.without_automated_cron.php',
22     ];
23   }
24
25   /**
26    * Ensures that automated cron module isn't installed and the config migrated.
27    */
28   public function testUpdate() {
29     $this->runUpdates();
30     $module_data = \Drupal::config('core.extension')->get('module');
31     $this->assertFalse(isset($module_data['automated_cron']), 'The automated cron module was not installed.');
32   }
33
34 }