| 7 update.test | UpdateCoreTestCase::testSecurityUpdateAvailable() |
| 8 update.test | UpdateCoreTestCase::testSecurityUpdateAvailable() |
Tests the update module when a security update ("7.2") is available.
File
- modules/
update/ update.test, line 101 - Tests for update.module.
Code
function testSecurityUpdateAvailable() {
$this->setSystemInfo7_0();
$this->refreshUpdateStatus(array('drupal' => '2-sec'));
$this->standardTests();
$this->assertNoText(t('Up to date'));
$this->assertNoText(t('Update available'));
$this->assertText(t('Security update required!'));
$this->assertRaw(l('7.2', 'http://example.com/drupal-7-2-release'), t('Link to release appears.'));
$this->assertRaw(l(t('Download'), 'http://example.com/drupal-7-2.tar.gz'), t('Link to download appears.'));
$this->assertRaw(l(t('Release notes'), 'http://example.com/drupal-7-2-release'), t('Link to release notes appears.'));
}
Login or register to post comments