UpdateCoreTestCase::testNormalUpdateAvailable

7 update.test UpdateCoreTestCase::testNormalUpdateAvailable()
8 update.test UpdateCoreTestCase::testNormalUpdateAvailable()

Tests the update module when one normal update ("7.1") is available.

File

modules/update/update.test, line 86
Tests for update.module.

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'), t('Link to release appears.'));
  $this->assertRaw(l(t('Download'), 'http://example.com/drupal-7-1.tar.gz'), t('Link to download appears.'));
  $this->assertRaw(l(t('Release notes'), 'http://example.com/drupal-7-1-release'), t('Link to release notes appears.'));
}
Login or register to post comments