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/field/field.test | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/field/field.test') diff --git a/modules/field/field.test b/modules/field/field.test index 2dabfca5e..adf9c06bf 100644 --- a/modules/field/field.test +++ b/modules/field/field.test @@ -4,7 +4,7 @@ // TODO : use drupalCreateField() / drupalCreateFieldInstance() all over ? class FieldAttachTestCase extends DrupalWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('Field attach tests'), 'description' => t("Test Field Attach API functions."), @@ -606,7 +606,7 @@ class FieldAttachTestCase extends DrupalWebTestCase { class FieldInfoTestCase extends DrupalWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('Field info tests'), 'description' => t("Get information about existing fields, instances and bundles."), @@ -712,7 +712,7 @@ class FieldInfoTestCase extends DrupalWebTestCase { } class FieldFormTestCase extends DrupalWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('Field form tests'), 'description' => t("Test Field form handling."), @@ -919,7 +919,7 @@ class FieldFormTestCase extends DrupalWebTestCase { } class FieldTestCase extends DrupalWebTestCase { - function getInfo() { + public static function getInfo() { return array( 'name' => t('Field tests'), 'description' => t("Create / read /update a field."), @@ -1063,7 +1063,7 @@ class FieldTestCase extends DrupalWebTestCase { class FieldInstanceTestCase extends DrupalWebTestCase { protected $field; - function getInfo() { + public static function getInfo() { return array( 'name' => t('Field instance tests'), 'description' => t("Create field entities by attaching fields to entities."), -- cgit v1.2.3