function UpdateCoreTest::testModulePageRunCron

Checks that running cron updates the list of available updates.

File

drupal/core/modules/update/lib/Drupal/update/Tests/UpdateCoreTest.php, line 105
Definition of Drupal\update\Tests\UpdateCoreTest.

Class

UpdateCoreTest
Tests behavior related to discovering and listing updates to Drupal core.

Namespace

Drupal\update\Tests

Code

function testModulePageRunCron() {
  $this
    ->setSystemInfo7_0();
  config('update.settings')
    ->set('fetch.url', url('update-test', array(
    'absolute' => TRUE,
  )))
    ->save();
  config('update_test.settings')
    ->set('xml_map', array(
    'drupal' => '0',
  ))
    ->save();
  $this
    ->cronRun();
  $this
    ->drupalGet('admin/modules');
  $this
    ->assertNoText(t('No update information available.'));
}