1 update.test UpdateCoreTestCase::testModulePageRunCron()

Checks that running cron updates the list of available updates.

File

core/modules/update/tests/update.test, line 139
This file contains tests for the Update Manager module.

Class

UpdateCoreTestCase

Code

function testModulePageRunCron() {
  $config = config('update.settings');
  $this->setSystemInfo1_0();
  $config->set('update_url', url('update-test', array('absolute' => TRUE)))->save();
  state_set('update_test_xml_map', array('backdrop' => '0'));

  $this->cronRun();
  $this->backdropGet('admin/modules');
  $this->assertNoText(t('No update information available.'));
}