AutomatedCronUpdateWithAutomatedCronTest.php in Drupal 8
File
core/modules/system/tests/src/Functional/Update/AutomatedCronUpdateWithAutomatedCronTest.php
View source
<?php
namespace Drupal\Tests\system\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class AutomatedCronUpdateWithAutomatedCronTest extends UpdatePathTestBase {
protected $defaultTheme = 'stark';
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../tests/fixtures/update/drupal-8.bare.standard.php.gz',
];
}
public function testUpdate() {
$this
->runUpdates();
$module_data = \Drupal::config('core.extension')
->get('module');
$this
->assertTrue(isset($module_data['automated_cron']), 'The automated cron module was installed.');
}
}