1 update.test UpdateCoreTestCase::testModulePageUpToDate()

Checks the messages at admin/modules when the site is up to date.

File

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

Class

UpdateCoreTestCase

Code

function testModulePageUpToDate() {
  $this->setSystemInfo1_0();
  $config = config('update.settings');
  // Instead of using refreshUpdateStatus(), set these manually.
  $config->set('update_url', url('update-test', array('absolute' => TRUE)))->save();
  state_set('update_test_xml_map', array('backdrop' => '0'));

  $this->backdropGet('admin/reports/updates');
  $this->clickLink(t('Check manually'));
  $this->assertText(t('Checked available update data for one project.'));
  $this->backdropGet('admin/modules');
  $this->assertNoText(t('There are updates available for your version of Backdrop.'));
  $this->assertNoText(t('There is a security update available for your version of Backdrop.'));
}