When running SimpleTests I get an PHP notice: "notice: Undefined index: description in /home/davereid/Projects/drupal6/sites/all/modules/contrib/simpletest/simpletest.module on line 179."

I traced it to the votingapi.test file which has:

13 : 	function getInfo() {
14 : 	  return array(
15 : 	    'name' => t('Voting API'),
16 : 	    'desc' => t('Voting API'),
17 : 	    'group' => t('Voting API Tests'));
18 : 	}

According to the SimpleTest documentation, that key should be 'description'.

Comments

dave reid’s picture

Status: Active » Needs review
StatusFileSize
new622 bytes

Patch for review.

dave reid’s picture

StatusFileSize
new888 bytes

Another revision that changes "function getInfo" to "public static function getInfo" to change along with SimpleTest changes.

webchick’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, and confirmed this fixes the problem.

eaton’s picture

Status: Reviewed & tested by the community » Fixed

Checked in. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.