From f40532da769cd1dd551a42bec64dbb1aff240099 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 31 Mar 2009 01:49:55 +0000 Subject: #376129 by boombatower, Damien Tournoud, and chx: Change getInfo() to a static method to reduce memory footprint of SimpleTest. --- modules/taxonomy/taxonomy.test | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/taxonomy/taxonomy.test') diff --git a/modules/taxonomy/taxonomy.test b/modules/taxonomy/taxonomy.test index a32a48cfc..2679da3e7 100644 --- a/modules/taxonomy/taxonomy.test +++ b/modules/taxonomy/taxonomy.test @@ -43,7 +43,7 @@ class TaxonomyWebTestCase extends DrupalWebTestCase { */ class TaxonomyVocabularyFunctionalTest extends TaxonomyWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('Taxonomy vocabulary interface'), 'description' => t('Test the taxonomy vocabulary interface.'), @@ -173,7 +173,7 @@ class TaxonomyVocabularyFunctionalTest extends TaxonomyWebTestCase { */ class TaxonomyVocabularyUnitTest extends TaxonomyWebTestCase { -function getInfo() { +public static function getInfo() { return array( 'name' => t('Taxonomy vocabularies'), 'description' => t('Test loading, saving and deleting vocabularies.'), @@ -282,7 +282,7 @@ function getInfo() { */ class TaxonomyTermUnitTest extends TaxonomyWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('Taxonomy term unit tests'), 'description' => t('Unit tests for taxonomy term functions.'), @@ -357,7 +357,7 @@ class TaxonomyTermUnitTest extends TaxonomyWebTestCase { */ class TaxonomyTermTestCase extends TaxonomyWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('Taxonomy term functions and forms.'), 'description' => t('Test load, save and delete for taxonomy terms.'), @@ -563,7 +563,7 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase { */ class TaxonomyLoadMultipleUnitTest extends TaxonomyWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('Taxonomy term multiple loading'), 'description' => t('Test the loading of multiple taxonomy terms at once'), @@ -629,7 +629,7 @@ class TaxonomyLoadMultipleUnitTest extends TaxonomyWebTestCase { * Tests for taxonomy hook invocation. */ class TaxonomyHooksTestCase extends DrupalWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('Taxonomy term hooks'), 'description' => t('Hooks for taxonomy term load/save/delete.'), -- cgit v1.2.3