diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-31 01:49:55 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-31 01:49:55 +0000 |
commit | f40532da769cd1dd551a42bec64dbb1aff240099 (patch) | |
tree | 988da5abd5f1604ea59cccea4747dc124cccfb95 /modules/user | |
parent | 5cc1704a3f23cdef051fbd74bb6532f4dc3800d4 (diff) | |
download | brdo-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/user')
-rw-r--r-- | modules/user/user.test | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/user/user.test b/modules/user/user.test index 430d105d4..055f7c261 100644 --- a/modules/user/user.test +++ b/modules/user/user.test @@ -2,7 +2,7 @@ // $Id$ class UserRegistrationTestCase extends DrupalWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('User registration'), 'description' => t('Registers a user, fails login, resets password, successfully logs in with the one time password, changes password, logs out, successfully logs in with the new password, visits profile page.'), @@ -102,7 +102,7 @@ class UserRegistrationTestCase extends DrupalWebTestCase { class UserValidationTestCase extends DrupalWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('Username/e-mail validation'), 'description' => t('Verify that username/email validity checks behave as designed.'), @@ -153,7 +153,7 @@ class UserValidationTestCase extends DrupalWebTestCase { } class UserCancelTestCase extends DrupalWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('Cancel account'), 'description' => t('Ensure that account cancellation methods work as expected.'), @@ -494,7 +494,7 @@ class UserPictureTestCase extends DrupalWebTestCase { protected $user; protected $_directory_test; - function getInfo() { + public static function getInfo() { return array( 'name' => t('Upload user picture'), 'description' => t('Assure that dimension check, extension check and image scaling work as designed.'), @@ -714,7 +714,7 @@ class UserPermissionsTestCase extends DrupalWebTestCase { protected $admin_user; protected $rid; - function getInfo() { + public static function getInfo() { return array( 'name' => t('Role permissions'), 'description' => t('Verify that role permissions can be added and removed via the permissions page.'), @@ -761,7 +761,7 @@ class UserPermissionsTestCase extends DrupalWebTestCase { } class UserAdminTestCase extends DrupalWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('User admininstration'), 'description' => t('Test user admininstration page functionality.'), @@ -814,7 +814,7 @@ class UserAdminTestCase extends DrupalWebTestCase { * Tests for user-configurable time zones. */ class UserTimeZoneFunctionalTest extends DrupalWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('User time zones'), 'description' => t('Set a user time zone and verify that dates are displayed in local time.'), @@ -874,7 +874,7 @@ class UserTimeZoneFunctionalTest extends DrupalWebTestCase { * Test user autocompletion. */ class UserAutocompleteTestCase extends DrupalWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('User autocompletion'), 'description' => t('Test user autocompletion functionality.'), @@ -914,7 +914,7 @@ class UserAutocompleteTestCase extends DrupalWebTestCase { * Test user blocks. */ class UserBlocksUnitTests extends DrupalWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('User blocks'), 'description' => t('Test user blocks.'), |