public function AutomaticUpdatesTestCase::testReadinessChecks in Automatic Updates 7
Tests manually running readiness checks.
File
- tests/
automatic_updates.test, line 78 - Contains AutomaticUpdatesTestCase class.
Class
- AutomaticUpdatesTestCase
- Class AutomaticUpdatesTestCase.
Code
public function testReadinessChecks() {
// Fabricate a readiness issue.
$this
->drupalGet($this
->getAbsoluteUrl('admin/config/system/automatic_updates'));
$this
->clickLink('run the readiness checks');
$this
->assertText('Your site does not pass some readiness checks for automatic updates. Depending on the nature of the failures, it might effect the eligibility for automatic updates.');
// Ignore certain folders for readiness checks.
variable_set('automatic_updates_ignored_paths', "modules/*\nthemes/*\nprofiles/*\nsites/all/modules/*");
$this
->drupalGet($this
->getAbsoluteUrl('admin/config/system/automatic_updates'));
$this
->clickLink('run the readiness checks');
$this
->assertText('No issues found. Your site is ready for automatic updates.');
}