Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function UpdateTestHelper::standardTests

Runs a series of assertions that are applicable to all update statuses.

5 calls to UpdateTestHelper::standardTests()
UpdateCoreTestCase::testNormalUpdateAvailable in modules/update/update.test
Tests the Update Manager module when one normal update is available.
UpdateCoreTestCase::testNoUpdatesAvailable in modules/update/update.test
Tests the Update Manager module when no updates are available.
UpdateCoreTestCase::testSecurityUpdateAvailable in modules/update/update.test
Tests the Update Manager module when a security update is available.
UpdateTestContribCase::testUpdateContribBasic in modules/update/update.test
Tests the basic functionality of a contrib module on the status report.
UpdateTestContribCase::testUpdateContribOrder in modules/update/update.test
Tests that contrib projects are ordered by project name.

File

modules/update/update.test, line 52

Class

UpdateTestHelper
Defines some shared functions used by all update tests.

Code

protected function standardTests() {
 $this->assertRaw ('<h3>' . t ('Drupal core') . '</h3>');
 $this->assertRaw (l (t ('Drupal'), 'http://example.com/project/drupal'), 'Link to the Drupal project appears.');
 $this->assertNoText (t ('No available releases found'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.