function UpdateCoreTestCase::testNormalUpdateAvailable in Drupal 7
Tests the Update Manager module when one normal update is available.
File
- modules/
update/ update.test, line 94 - This file contains tests for the Update Manager module.
Class
- UpdateCoreTestCase
- Tests behavior related to discovering and listing updates to Drupal core.
Code
function testNormalUpdateAvailable() {
$this
->setSystemInfo7_0();
$this
->refreshUpdateStatus(array(
'drupal' => '1',
));
$this
->standardTests();
$this
->assertNoText(t('Up to date'));
$this
->assertText(t('Update available'));
$this
->assertNoText(t('Security update required!'));
$this
->assertRaw(l('7.1', 'http://example.com/drupal-7-1-release'), 'Link to release appears.');
$this
->assertRaw(l(t('Download'), 'http://example.com/drupal-7-1.tar.gz'), 'Link to download appears.');
$this
->assertRaw(l(t('Release notes'), 'http://example.com/drupal-7-1-release'), 'Link to release notes appears.');
}