function UpdateCoreTestCase::testNoUpdatesAvailable
Tests the Update Manager module when no updates are available.
File
-
modules/
update/ update.test, line 82
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!'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.