function UpdateCoreTestCase::testNoUpdatesAvailable

7.x update.test UpdateCoreTestCase::testNoUpdatesAvailable()

Tests the Update Manager module when no updates are available.

File

drupal-7.x/modules/update/update.test, line 82
This file contains tests for the Update Manager module.

Class

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

Code

function testNoUpdatesAvailable() {
  $this->setSystemInfo7_0();
  $this->refreshUpdateStatus(array('drupal' => '0'));
  $this->standardTests();
  $this->assertText(t('Up to date'));
  $this->assertNoText(t('Update available'));
  $this->assertNoText(t('Security update required!'));
}