function UpdateCoreTestCase::testModulePageRunCron
7.x update.test | UpdateCoreTestCase::testModulePageRunCron() |
Checks that running cron updates the list of available updates.
File
- drupal-7.x/
modules/ update/ update.test, line 147 - This file contains tests for the Update Manager module.
Class
- UpdateCoreTestCase
- Tests behavior related to discovering and listing updates to Drupal core.
Code
function testModulePageRunCron() {
$this->setSystemInfo7_0();
variable_set('update_fetch_url', url('update-test', array('absolute' => TRUE)));
variable_set('update_test_xml_map', array('drupal' => '0'));
$this->cronRun();
$this->drupalGet('admin/modules');
$this->assertNoText(t('No update information available.'));
}