summaryrefslogtreecommitdiff
path: root/modules/poll/poll.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-03-31 01:49:55 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-03-31 01:49:55 +0000
commitf40532da769cd1dd551a42bec64dbb1aff240099 (patch)
tree988da5abd5f1604ea59cccea4747dc124cccfb95 /modules/poll/poll.test
parent5cc1704a3f23cdef051fbd74bb6532f4dc3800d4 (diff)
downloadbrdo-f40532da769cd1dd551a42bec64dbb1aff240099.tar.gz
brdo-f40532da769cd1dd551a42bec64dbb1aff240099.tar.bz2
#376129 by boombatower, Damien Tournoud, and chx: Change getInfo() to a static method to reduce memory footprint of SimpleTest.
Diffstat (limited to 'modules/poll/poll.test')
-rw-r--r--modules/poll/poll.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/poll/poll.test b/modules/poll/poll.test
index 15e3a454f..6ff2a7825 100644
--- a/modules/poll/poll.test
+++ b/modules/poll/poll.test
@@ -74,7 +74,7 @@ class PollTestCase extends DrupalWebTestCase {
}
class PollCreateTestCase extends PollTestCase {
- function getInfo() {
+ public static function getInfo() {
return array('name' => t('Poll create'), 'description' => 'Adds "more choices", previews and creates a poll.', 'group' => t('Poll'));
}
@@ -90,7 +90,7 @@ class PollCreateTestCase extends PollTestCase {
}
class PollVoteTestCase extends PollTestCase {
- function getInfo() {
+ public static function getInfo() {
return array('name' => t('Poll vote'), 'description' => 'Vote on a poll', 'group' => t('Poll'));
}
@@ -125,7 +125,7 @@ class PollVoteTestCase extends PollTestCase {
}
class PollBlockTestCase extends DrupalWebTestCase {
- function getInfo() {
+ public static function getInfo() {
return array(
'name' => t('Block availability'),
'description' => t('Check if the most recent poll block is available.'),
@@ -159,7 +159,7 @@ class PollBlockTestCase extends DrupalWebTestCase {
*/
class PollJSAddChoice extends DrupalWebTestCase {
- function getInfo() {
+ public static function getInfo() {
return array(
'name' => t('Poll add choice'),
'description' => t('Submits a POST request for an additional poll choice.'),