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'.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 332317-notice-test-description-D6.patch | 888 bytes | dave reid |
| #1 | 332317-notice-test-description-D6.patch | 622 bytes | dave reid |
Comments
Comment #1
dave reidPatch for review.
Comment #2
dave reidAnother revision that changes "function getInfo" to "public static function getInfo" to change along with SimpleTest changes.
Comment #3
webchickLooks good, and confirmed this fixes the problem.
Comment #4
eaton commentedChecked in. Thanks!