You are here

public static function SimpleTestExampleTestCase::getInfo in Examples for Developers 7

Same name and namespace in other branches
  1. 6 simpletest_example/simpletest_example.test \SimpleTestExampleTestCase::getInfo()

Give display information to the SimpleTest system.

getInfo() returns a keyed array of information for SimpleTest to show.

It's a good idea to organize your tests consistently using the 'group' key.

File

simpletest_example/simpletest_example.test, line 36
An example of simpletest tests to accompany the tutorial at http://drupal.org/node/890654.

Class

SimpleTestExampleTestCase
The SimpleTestExampleTestCase is a functional test case, meaning that it actually exercises a particular sequence of actions through the web UI. The majority of core test cases are done this way, but the SimpleTest suite also provides unit tests as…

Code

public static function getInfo() {
  return array(
    'name' => 'SimpleTest Example',
    'description' => 'Ensure that the simpletest_example content type provided functions properly.',
    'group' => 'Examples',
  );
}