Updated to Drupal 8.5. Core Media not yet in use.
[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  */
12 class AutomatedCronUpdateWithoutAutomatedCronTest 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       __DIR__ . '/../../../../tests/fixtures/update/drupal-8.without_automated_cron.php',
21     ];
22   }
23
24   /**
25    * Ensures that automated cron module isn't installed and the config migrated.
26    */
27   public function testUpdate() {
28     $this->runUpdates();
29     $module_data = \Drupal::config('core.extension')->get('module');
30     $this->assertFalse(isset($module_data['automated_cron']), 'The automated cron module was not installed.');
31   }
32
33 }