1 update.test UpdateCoreTestCase::testSecurityUpdateAvailable()

Tests the Update Manager module when a security update is available.

File

core/modules/update/tests/update.test, line 101
This file contains tests for the Update Manager module.

Class

UpdateCoreTestCase

Code

function testSecurityUpdateAvailable() {
  $this->setSystemInfo1_0();
  $this->refreshUpdateStatus(array('backdrop' => '2-sec'));
  $this->assertStandardTests();
  $this->assertNoText(t('Up to date'));
  $this->assertNoText(t('Update available'));
  $this->assertText(t('Security update required!'));
  $this->assertRaw(l('1.2', 'http://example.com/backdrop-1-2-release'), 'Link to release appears.');
  $this->assertRaw(l(t('Download'), 'http://example.com/backdrop-1-2.tar.gz'), 'Link to download appears.');
  $this->assertRaw(l(t('Release notes'), 'http://example.com/backdrop-1-2-release'), 'Link to release notes appears.');
}