Commit f40532da authored by webchick's avatar webchick

#376129 by boombatower, Damien Tournoud, and chx: Change getInfo() to a static...

#376129 by boombatower, Damien Tournoud, and chx: Change getInfo() to a static method to reduce memory footprint of SimpleTest.
parent 5cc1704a
...@@ -243,7 +243,7 @@ EOF; ...@@ -243,7 +243,7 @@ EOF;
} }
class AddFeedTestCase extends AggregatorTestCase { class AddFeedTestCase extends AggregatorTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Add feed functionality'), 'name' => t('Add feed functionality'),
'description' => t('Add feed test.'), 'description' => t('Add feed test.'),
...@@ -272,7 +272,7 @@ class AddFeedTestCase extends AggregatorTestCase { ...@@ -272,7 +272,7 @@ class AddFeedTestCase extends AggregatorTestCase {
} }
class UpdateFeedTestCase extends AggregatorTestCase { class UpdateFeedTestCase extends AggregatorTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Update feed functionality'), 'name' => t('Update feed functionality'),
'description' => t('Update feed test.'), 'description' => t('Update feed test.'),
...@@ -314,7 +314,7 @@ class UpdateFeedTestCase extends AggregatorTestCase { ...@@ -314,7 +314,7 @@ class UpdateFeedTestCase extends AggregatorTestCase {
} }
class RemoveFeedTestCase extends AggregatorTestCase { class RemoveFeedTestCase extends AggregatorTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Remove feed functionality'), 'name' => t('Remove feed functionality'),
'description' => t('Remove feed test.'), 'description' => t('Remove feed test.'),
...@@ -342,7 +342,7 @@ class RemoveFeedTestCase extends AggregatorTestCase { ...@@ -342,7 +342,7 @@ class RemoveFeedTestCase extends AggregatorTestCase {
} }
class UpdateFeedItemTestCase extends AggregatorTestCase { class UpdateFeedItemTestCase extends AggregatorTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Update feed item functionality'), 'name' => t('Update feed item functionality'),
'description' => t('Update feed items from a feed.'), 'description' => t('Update feed items from a feed.'),
...@@ -403,7 +403,7 @@ class UpdateFeedItemTestCase extends AggregatorTestCase { ...@@ -403,7 +403,7 @@ class UpdateFeedItemTestCase extends AggregatorTestCase {
} }
class RemoveFeedItemTestCase extends AggregatorTestCase { class RemoveFeedItemTestCase extends AggregatorTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Remove feed item functionality'), 'name' => t('Remove feed item functionality'),
'description' => t('Remove feed items from a feed.'), 'description' => t('Remove feed items from a feed.'),
...@@ -443,7 +443,7 @@ class RemoveFeedItemTestCase extends AggregatorTestCase { ...@@ -443,7 +443,7 @@ class RemoveFeedItemTestCase extends AggregatorTestCase {
class CategorizeFeedItemTestCase extends AggregatorTestCase { class CategorizeFeedItemTestCase extends AggregatorTestCase {
private static $prefix = 'simpletest_aggregator_'; private static $prefix = 'simpletest_aggregator_';
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Categorize feed item functionality'), 'name' => t('Categorize feed item functionality'),
'description' => t('Test feed item categorization.'), 'description' => t('Test feed item categorization.'),
...@@ -502,7 +502,7 @@ class CategorizeFeedItemTestCase extends AggregatorTestCase { ...@@ -502,7 +502,7 @@ class CategorizeFeedItemTestCase extends AggregatorTestCase {
class ImportOPMLTestCase extends AggregatorTestCase { class ImportOPMLTestCase extends AggregatorTestCase {
private static $prefix = 'simpletest_aggregator_'; private static $prefix = 'simpletest_aggregator_';
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Import feeds from OPML functionality'), 'name' => t('Import feeds from OPML functionality'),
'description' => t('Test OPML import.'), 'description' => t('Test OPML import.'),
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
class BlockTestCase extends DrupalWebTestCase { class BlockTestCase extends DrupalWebTestCase {
protected $regions; protected $regions;
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Block functionality'), 'name' => t('Block functionality'),
'description' => t('Add, edit and delete custom block. Configure and move a module-defined block.'), 'description' => t('Add, edit and delete custom block. Configure and move a module-defined block.'),
...@@ -152,7 +152,7 @@ class BlockTestCase extends DrupalWebTestCase { ...@@ -152,7 +152,7 @@ class BlockTestCase extends DrupalWebTestCase {
} }
class NonDefaultBlockAdmin extends DrupalWebTestCase { class NonDefaultBlockAdmin extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Non default theme admin'), 'name' => t('Non default theme admin'),
'description' => t('Check the administer page for non default theme.'), 'description' => t('Check the administer page for non default theme.'),
......
...@@ -6,7 +6,7 @@ class BlogTestCase extends DrupalWebTestCase { ...@@ -6,7 +6,7 @@ class BlogTestCase extends DrupalWebTestCase {
protected $own_user; protected $own_user;
protected $any_user; protected $any_user;
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Blog functionality'), 'name' => t('Blog functionality'),
'description' => t('Create, view, edit, delete, and change blog entries and verify its consistency in the database.'), 'description' => t('Create, view, edit, delete, and change blog entries and verify its consistency in the database.'),
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// $Id$ // $Id$
class BlogAPITestCase extends DrupalWebTestCase { class BlogAPITestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Blog API functionality'), 'name' => t('Blog API functionality'),
'description' => t('Create, edit, and delete post; upload file; and set/get categories.'), 'description' => t('Create, edit, and delete post; upload file; and set/get categories.'),
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
class BookTestCase extends DrupalWebTestCase { class BookTestCase extends DrupalWebTestCase {
protected $book; protected $book;
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Book functionality'), 'name' => t('Book functionality'),
'description' => t('Create a book, add pages, and test book interface.'), 'description' => t('Create a book, add pages, and test book interface.'),
...@@ -174,7 +174,7 @@ class BookTestCase extends DrupalWebTestCase { ...@@ -174,7 +174,7 @@ class BookTestCase extends DrupalWebTestCase {
} }
class BookBlockTestCase extends DrupalWebTestCase { class BookBlockTestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Block availability'), 'name' => t('Block availability'),
'description' => t('Check if the book navigation block is available.'), 'description' => t('Check if the book navigation block is available.'),
......
...@@ -229,7 +229,7 @@ class CommentHelperCase extends DrupalWebTestCase { ...@@ -229,7 +229,7 @@ class CommentHelperCase extends DrupalWebTestCase {
} }
class CommentInterfaceTest extends CommentHelperCase { class CommentInterfaceTest extends CommentHelperCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Comment interface'), 'name' => t('Comment interface'),
'description' => t('Test comment user interfaces.'), 'description' => t('Test comment user interfaces.'),
...@@ -359,7 +359,7 @@ class CommentInterfaceTest extends CommentHelperCase { ...@@ -359,7 +359,7 @@ class CommentInterfaceTest extends CommentHelperCase {
} }
class CommentAnonymous extends CommentHelperCase { class CommentAnonymous extends CommentHelperCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Anonymous comments'), 'name' => t('Anonymous comments'),
'description' => t('Test anonymous comments.'), 'description' => t('Test anonymous comments.'),
...@@ -455,7 +455,7 @@ class CommentAnonymous extends CommentHelperCase { ...@@ -455,7 +455,7 @@ class CommentAnonymous extends CommentHelperCase {
} }
class CommentApprovalTest extends CommentHelperCase { class CommentApprovalTest extends CommentHelperCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Comment approval'), 'name' => t('Comment approval'),
'description' => t('Test comment approval functionality.'), 'description' => t('Test comment approval functionality.'),
...@@ -537,7 +537,7 @@ class CommentApprovalTest extends CommentHelperCase { ...@@ -537,7 +537,7 @@ class CommentApprovalTest extends CommentHelperCase {
* Functional tests for the comment module blocks. * Functional tests for the comment module blocks.
*/ */
class CommentBlockFunctionalTest extends CommentHelperCase { class CommentBlockFunctionalTest extends CommentHelperCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Comment blocks'), 'name' => t('Comment blocks'),
'description' => t('Test comment block functionality.'), 'description' => t('Test comment block functionality.'),
...@@ -606,7 +606,7 @@ class CommentBlockFunctionalTest extends CommentHelperCase { ...@@ -606,7 +606,7 @@ class CommentBlockFunctionalTest extends CommentHelperCase {
* Unit tests for comment module integration with RSS feeds. * Unit tests for comment module integration with RSS feeds.
*/ */
class CommentRSSUnitTest extends CommentHelperCase { class CommentRSSUnitTest extends CommentHelperCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Comment RSS'), 'name' => t('Comment RSS'),
'description' => t('Test comments as part of an RSS feed.'), 'description' => t('Test comments as part of an RSS feed.'),
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Test the sitewide contact form. * Test the sitewide contact form.
*/ */
class ContactSitewideTestCase extends DrupalWebTestCase { class ContactSitewideTestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Site-wide contact form'), 'name' => t('Site-wide contact form'),
'description' => t('Tests site-wide contact form functionality.'), 'description' => t('Tests site-wide contact form functionality.'),
...@@ -256,7 +256,7 @@ class ContactSitewideTestCase extends DrupalWebTestCase { ...@@ -256,7 +256,7 @@ class ContactSitewideTestCase extends DrupalWebTestCase {
* Test the personal contact form. * Test the personal contact form.
*/ */
class ContactPersonalTestCase extends DrupalWebTestCase { class ContactPersonalTestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Personal contact form'), 'name' => t('Personal contact form'),
'description' => t('Tests personal contact form functionality.'), 'description' => t('Tests personal contact form functionality.'),
......
...@@ -5,7 +5,7 @@ class DBLogTestCase extends DrupalWebTestCase { ...@@ -5,7 +5,7 @@ class DBLogTestCase extends DrupalWebTestCase {
protected $big_user; protected $big_user;
protected $any_user; protected $any_user;
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('DBLog functionality'), 'name' => t('DBLog functionality'),
'description' => t('Generate events and verify dblog entries; verify user access to log reports based on persmissions.'), 'description' => t('Generate events and verify dblog entries; verify user access to log reports based on persmissions.'),
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// TODO : use drupalCreateField() / drupalCreateFieldInstance() all over ? // TODO : use drupalCreateField() / drupalCreateFieldInstance() all over ?
class FieldAttachTestCase extends DrupalWebTestCase { class FieldAttachTestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Field attach tests'), 'name' => t('Field attach tests'),
'description' => t("Test Field Attach API functions."), 'description' => t("Test Field Attach API functions."),
...@@ -606,7 +606,7 @@ class FieldAttachTestCase extends DrupalWebTestCase { ...@@ -606,7 +606,7 @@ class FieldAttachTestCase extends DrupalWebTestCase {
class FieldInfoTestCase extends DrupalWebTestCase { class FieldInfoTestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Field info tests'), 'name' => t('Field info tests'),
'description' => t("Get information about existing fields, instances and bundles."), 'description' => t("Get information about existing fields, instances and bundles."),
...@@ -712,7 +712,7 @@ class FieldInfoTestCase extends DrupalWebTestCase { ...@@ -712,7 +712,7 @@ class FieldInfoTestCase extends DrupalWebTestCase {
} }
class FieldFormTestCase extends DrupalWebTestCase { class FieldFormTestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Field form tests'), 'name' => t('Field form tests'),
'description' => t("Test Field form handling."), 'description' => t("Test Field form handling."),
...@@ -919,7 +919,7 @@ class FieldFormTestCase extends DrupalWebTestCase { ...@@ -919,7 +919,7 @@ class FieldFormTestCase extends DrupalWebTestCase {
} }
class FieldTestCase extends DrupalWebTestCase { class FieldTestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Field tests'), 'name' => t('Field tests'),
'description' => t("Create / read /update a field."), 'description' => t("Create / read /update a field."),
...@@ -1063,7 +1063,7 @@ class FieldTestCase extends DrupalWebTestCase { ...@@ -1063,7 +1063,7 @@ class FieldTestCase extends DrupalWebTestCase {
class FieldInstanceTestCase extends DrupalWebTestCase { class FieldInstanceTestCase extends DrupalWebTestCase {
protected $field; protected $field;
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Field instance tests'), 'name' => t('Field instance tests'),
'description' => t("Create field entities by attaching fields to entities."), 'description' => t("Create field entities by attaching fields to entities."),
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// $Id$ // $Id$
class FieldSqlStorageTestCase extends DrupalWebTestCase { class FieldSqlStorageTestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Field SQL storage tests'), 'name' => t('Field SQL storage tests'),
'description' => t("Test field SQL storage module."), 'description' => t("Test field SQL storage module."),
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
class TextFieldTestCase extends DrupalWebTestCase { class TextFieldTestCase extends DrupalWebTestCase {
protected $instance; protected $instance;
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Text Field'), 'name' => t('Text Field'),
'description' => t("Test the creation of text fields."), 'description' => t("Test the creation of text fields."),
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// $Id$ // $Id$
class FilterAdminTestCase extends DrupalWebTestCase { class FilterAdminTestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Filter administration functionality'), 'name' => t('Filter administration functionality'),
'description' => t('Thoroughly test the administrative interface of the filter module.'), 'description' => t('Thoroughly test the administrative interface of the filter module.'),
...@@ -181,7 +181,7 @@ class FilterAdminTestCase extends DrupalWebTestCase { ...@@ -181,7 +181,7 @@ class FilterAdminTestCase extends DrupalWebTestCase {
class FilterTestCase extends DrupalWebTestCase { class FilterTestCase extends DrupalWebTestCase {
protected $format; protected $format;
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Core filters'), 'name' => t('Core filters'),
'description' => t('Filter each filter individually: Convert URLs into links, Convert line breaks, Correct broken HTML, Escape all HTML, Limit allowed HTML tags.'), 'description' => t('Filter each filter individually: Convert URLs into links, Convert line breaks, Correct broken HTML, Escape all HTML, Limit allowed HTML tags.'),
......
...@@ -11,7 +11,7 @@ class ForumTestCase extends DrupalWebTestCase { ...@@ -11,7 +11,7 @@ class ForumTestCase extends DrupalWebTestCase {
protected $root_forum; protected $root_forum;
protected $nids; protected $nids;
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Forum functionality'), 'name' => t('Forum functionality'),
'description' => t('Create, view, edit, delete, and change forum entries and verify its consistency in the database.'), 'description' => t('Create, view, edit, delete, and change forum entries and verify its consistency in the database.'),
......
...@@ -5,7 +5,7 @@ class HelpTestCase extends DrupalWebTestCase { ...@@ -5,7 +5,7 @@ class HelpTestCase extends DrupalWebTestCase {
protected $big_user; protected $big_user;
protected $any_user; protected $any_user;
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Help functionality'), 'name' => t('Help functionality'),
'description' => t('Verify help display and user access to help based on persmissions.'), 'description' => t('Verify help display and user access to help based on persmissions.'),
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* Functional tests for the language configuration forms. * Functional tests for the language configuration forms.
*/ */
class LocaleConfigurationTest extends DrupalWebTestCase { class LocaleConfigurationTest extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Language configuration'), 'name' => t('Language configuration'),
'description' => t('Adds a new locale and tests changing its status and the default language.'), 'description' => t('Adds a new locale and tests changing its status and the default language.'),
...@@ -165,7 +165,7 @@ class LocaleConfigurationTest extends DrupalWebTestCase { ...@@ -165,7 +165,7 @@ class LocaleConfigurationTest extends DrupalWebTestCase {
* Functional test for string translation and validation. * Functional test for string translation and validation.
*/ */
class LocaleTranslationFunctionalTest extends DrupalWebTestCase { class LocaleTranslationFunctionalTest extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('String translate, search and validate'), 'name' => t('String translate, search and validate'),
'description' => t('Adds a new locale and translates its name. Checks the validation of translation strings and search results.'), 'description' => t('Adds a new locale and translates its name. Checks the validation of translation strings and search results.'),
...@@ -528,7 +528,7 @@ class LocaleTranslationFunctionalTest extends DrupalWebTestCase { ...@@ -528,7 +528,7 @@ class LocaleTranslationFunctionalTest extends DrupalWebTestCase {
* Functional tests for the import of translation files. * Functional tests for the import of translation files.
*/ */
class LocaleImportFunctionalTest extends DrupalWebTestCase { class LocaleImportFunctionalTest extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Translation import'), 'name' => t('Translation import'),
'description' => t('Tests the importation of locale files.'), 'description' => t('Tests the importation of locale files.'),
...@@ -778,7 +778,7 @@ EOF; ...@@ -778,7 +778,7 @@ EOF;
* Functional tests for the export of translation files. * Functional tests for the export of translation files.
*/ */
class LocaleExportFunctionalTest extends DrupalWebTestCase { class LocaleExportFunctionalTest extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Translation export'), 'name' => t('Translation export'),
'description' => t('Tests the exportation of locale files.'), 'description' => t('Tests the exportation of locale files.'),
...@@ -860,7 +860,7 @@ EOF; ...@@ -860,7 +860,7 @@ EOF;
* Locale uninstall with English UI functional test. * Locale uninstall with English UI functional test.
*/ */
class LocaleUninstallFunctionalTest extends DrupalWebTestCase { class LocaleUninstallFunctionalTest extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Locale uninstall (EN)'), 'name' => t('Locale uninstall (EN)'),
'description' => t('Tests the uninstall process using the built-in UI language.'), 'description' => t('Tests the uninstall process using the built-in UI language.'),
...@@ -966,7 +966,7 @@ class LocaleUninstallFunctionalTest extends DrupalWebTestCase { ...@@ -966,7 +966,7 @@ class LocaleUninstallFunctionalTest extends DrupalWebTestCase {
* to test with this new language. * to test with this new language.
*/ */
class LocaleUninstallFrenchFunctionalTest extends LocaleUninstallFunctionalTest { class LocaleUninstallFrenchFunctionalTest extends LocaleUninstallFunctionalTest {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Locale uninstall (FR)'), 'name' => t('Locale uninstall (FR)'),
'description' => t('Tests the uninstall process using French as UI language.'), 'description' => t('Tests the uninstall process using French as UI language.'),
...@@ -986,7 +986,7 @@ class LocaleUninstallFrenchFunctionalTest extends LocaleUninstallFunctionalTest ...@@ -986,7 +986,7 @@ class LocaleUninstallFrenchFunctionalTest extends LocaleUninstallFunctionalTest
*/ */
class LanguageSwitchingFunctionalTest extends DrupalWebTestCase { class LanguageSwitchingFunctionalTest extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Language switching'), 'name' => t('Language switching'),
'description' => t('Tests for the language switching feature.'), 'description' => t('Tests for the language switching feature.'),
...@@ -1065,7 +1065,7 @@ class LanguageSwitchingFunctionalTest extends DrupalWebTestCase { ...@@ -1065,7 +1065,7 @@ class LanguageSwitchingFunctionalTest extends DrupalWebTestCase {
* Functional tests for a user's ability to change their default language. * Functional tests for a user's ability to change their default language.
*/ */
class LocaleUserLanguageFunctionalTest extends DrupalWebTestCase { class LocaleUserLanguageFunctionalTest extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('User language settings'), 'name' => t('User language settings'),
'description' => t("Tests user's ability to change their default language."), 'description' => t("Tests user's ability to change their default language."),
...@@ -1160,7 +1160,7 @@ class LocaleUserLanguageFunctionalTest extends DrupalWebTestCase { ...@@ -1160,7 +1160,7 @@ class LocaleUserLanguageFunctionalTest extends DrupalWebTestCase {
* Functional tests for configuring a different path alias per language. * Functional tests for configuring a different path alias per language.
*/ */
class LocalePathFunctionalTest extends DrupalWebTestCase { class LocalePathFunctionalTest extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Path language settings'), 'name' => t('Path language settings'),
'description' => t('Checks you can configure a language for individual url aliases.'), 'description' => t('Checks you can configure a language for individual url aliases.'),
...@@ -1243,7 +1243,7 @@ class LocalePathFunctionalTest extends DrupalWebTestCase { ...@@ -1243,7 +1243,7 @@ class LocalePathFunctionalTest extends DrupalWebTestCase {
* Functional tests for multilingual support on nodes. * Functional tests for multilingual support on nodes.
*/ */
class LocaleContentFunctionalTest extends DrupalWebTestCase { class LocaleContentFunctionalTest extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Content language settings'), 'name' => t('Content language settings'),
'description' => t('Checks you can enable multilingual support on content types and configure a language for a node.'), 'description' => t('Checks you can enable multilingual support on content types and configure a language for a node.'),
......
...@@ -7,7 +7,7 @@ class MenuTestCase extends DrupalWebTestCase { ...@@ -7,7 +7,7 @@ class MenuTestCase extends DrupalWebTestCase {
protected $menu; protected $menu;
protected $items; protected $items;
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Menu link creation/deletion'), 'name' => t('Menu link creation/deletion'),
'description' => t('Add a custom menu, add menu links to the custom menu and Navigation menu, check their data, and delete them using the menu module UI.'), 'description' => t('Add a custom menu, add menu links to the custom menu and Navigation menu, check their data, and delete them using the menu module UI.'),
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
*/ */
class NodeLoadMultipleUnitTest extends DrupalWebTestCase { class NodeLoadMultipleUnitTest extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Load multiple nodes'), 'name' => t('Load multiple nodes'),
'description' => t('Test the loading of multiple nodes.'), 'description' => t('Test the loading of multiple nodes.'),
...@@ -85,7 +85,7 @@ class NodeRevisionsTestCase extends DrupalWebTestCase { ...@@ -85,7 +85,7 @@ class NodeRevisionsTestCase extends DrupalWebTestCase {
protected $nodes; protected $nodes;
protected $logs; protected $logs;
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Node revisions'), 'name' => t('Node revisions'),
'description' => t('Create a node with revisions and test viewing, reverting, and deleting revisions.'), 'description' => t('Create a node with revisions and test viewing, reverting, and deleting revisions.'),
...@@ -167,7 +167,7 @@ class NodeRevisionsTestCase extends DrupalWebTestCase { ...@@ -167,7 +167,7 @@ class NodeRevisionsTestCase extends DrupalWebTestCase {
} }
class NodeTeaserTestCase extends DrupalWebTestCase { class NodeTeaserTestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Node teaser'), 'name' => t('Node teaser'),
'description' => t('Test node_teaser() with different strings and lengths.'), 'description' => t('Test node_teaser() with different strings and lengths.'),
...@@ -312,7 +312,7 @@ class NodeTeaserTestCase extends DrupalWebTestCase { ...@@ -312,7 +312,7 @@ class NodeTeaserTestCase extends DrupalWebTestCase {
} }
class PageEditTestCase extends DrupalWebTestCase { class PageEditTestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Node edit'), 'name' => t('Node edit'),
'description' => t('Create a node and test node edit functionality.'), 'description' => t('Create a node and test node edit functionality.'),
...@@ -366,7 +366,7 @@ class PageEditTestCase extends DrupalWebTestCase { ...@@ -366,7 +366,7 @@ class PageEditTestCase extends DrupalWebTestCase {
} }
class PagePreviewTestCase extends DrupalWebTestCase { class PagePreviewTestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Node preview'), 'name' => t('Node preview'),
'description' => t('Test node preview functionality.'), 'description' => t('Test node preview functionality.'),
...@@ -403,7 +403,7 @@ class PagePreviewTestCase extends DrupalWebTestCase { ...@@ -403,7 +403,7 @@ class PagePreviewTestCase extends DrupalWebTestCase {
} }
class PageCreationTestCase extends DrupalWebTestCase { class PageCreationTestCase extends DrupalWebTestCase {
function getInfo() { public static function getInfo() {
return array( return array(
'name' => t('Node creation'), 'name' => t('Node creation'),
'description' => t('Create a node and test saving it.'), 'description' => t('Create a node and test saving it.'),
...@@ -438,7 +438,7 @@ class PageCreationTestCase extends DrupalWebTestCase { ...@@ -438,7 +438,7 @@ class PageCreationTestCase extends DrupalWebTestCase {
} }
class PageViewTestCase extends DrupalWebTestCase { class PageViewTestCase extends DrupalWebTestCase {