function UpdateCoreTest::testLanguageModuleUpdate

Checks language module in core package at admin/reports/updates.

File

drupal/core/modules/update/lib/Drupal/update/Tests/UpdateCoreTest.php, line 224
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 testLanguageModuleUpdate() {
  $this
    ->setSystemInfo7_0();

  // Instead of using refreshUpdateStatus(), set these manually.
  config('update.settings')
    ->set('fetch.url', url('update-test', array(
    'absolute' => TRUE,
  )))
    ->save();
  config('update_test.settings')
    ->set('xml_map', array(
    'drupal' => '1',
  ))
    ->save();
  $this
    ->drupalGet('admin/reports/updates');
  $this
    ->assertText(t('Language'));
}