function UpdateCoreTestCase::testModulePageRunCron

Checks that running cron updates the list of available updates.

File

modules/update/update.test, line 147

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.'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.