1 update.test | UpdateCoreTestCase::testNormalUpdateAvailable() |
Tests the Update Manager module when one normal update is available.
File
- core/
modules/ update/ tests/ update.test, line 86 - This file contains tests for the Update Manager module.
Class
Code
function testNormalUpdateAvailable() {
$this->setSystemInfo1_0();
$this->refreshUpdateStatus(array('backdrop' => '1'));
$this->assertStandardTests();
$this->assertNoText(t('Up to date'));
$this->assertText(t('Update available'));
$this->assertNoText(t('Security update required!'));
$this->assertRaw(l('1.1', 'http://example.com/backdrop-1-1-release'), 'Link to release appears.');
$this->assertRaw(l(t('Download'), 'http://example.com/backdrop-1-1.tar.gz'), 'Link to download appears.');
$this->assertRaw(l(t('Release notes'), 'http://example.com/backdrop-1-1-release'), 'Link to release notes appears.');
}