Commit 5c737566 authored by Dries's avatar Dries

- Patch #582758 by c960657: remove t() calls from getInfo() functions.

parent ffb84212
......@@ -176,11 +176,11 @@ class FileFieldTestCase extends DrupalWebTestCase {
* Test class to test file handling with node revisions.
*/
class FileFieldRevisionTestCase extends FileFieldTestCase {
public function getInfo() {
public static function getInfo() {
return array(
'name' => t('File field revision test'),
'description' => t('Test creating and deleting revisions with files attached.'),
'group' => t('File'),
'name' => 'File field revision test',
'description' => 'Test creating and deleting revisions with files attached.',
'group' => 'File',
);
}
......@@ -269,11 +269,11 @@ class FileFieldRevisionTestCase extends FileFieldTestCase {
* Test class to check that formatters are working properly.
*/
class FileFieldDisplayTestCase extends FileFieldTestCase {
public function getInfo() {
public static function getInfo() {
return array(
'name' => t('File field display tests'),
'description' => t('Test the display of file fields in node and views.'),
'group' => t('File'),
'name' => 'File field display tests',
'description' => 'Test the display of file fields in node and views.',
'group' => 'File',
);
}
......@@ -323,11 +323,11 @@ class FileFieldValidateTestCase extends FileFieldTestCase {
protected $field;
protected $node_type;
public function getInfo() {
public static function getInfo() {
return array(
'name' => t('File field validation tests'),
'description' => t('Tests validation functions such as file type, max file size, max size per node, and required.'),
'group' => t('File'),
'name' => 'File field validation tests',
'description' => 'Tests validation functions such as file type, max file size, max size per node, and required.',
'group' => 'File',
);
}
......@@ -478,11 +478,11 @@ class FileFieldValidateTestCase extends FileFieldTestCase {
* Test class to check that files are uploaded to proper locations.
*/
class FileFieldPathTestCase extends FileFieldTestCase {
function getInfo() {
public static function getInfo() {
return array(
'name' => t('File field file path tests'),
'description' => t('Test that files are uploaded to the proper location with token support.'),
'group' => t('File'),
'name' => 'File field file path tests',
'description' => 'Test that files are uploaded to the proper location with token support.',
'group' => 'File',
);
}
......
......@@ -284,9 +284,9 @@ class BootstrapGetFilenameTestCase extends DrupalUnitTestCase {
public static function getInfo() {
return array(
'name' => t('Get Filename Test'),
'description' => t('Test that drupal_get_filename() works correctly when the file is not found in the database.'),
'group' => t('Bootstrap'),
'name' => 'Get filename test',
'description' => 'Test that drupal_get_filename() works correctly when the file is not found in the database.',
'group' => 'Bootstrap',
);
}
......
......@@ -13,9 +13,9 @@ class BrowserTestCase extends DrupalWebTestCase {
public static function getInfo() {
return array(
'name' => t('Browser'),
'description' => t('Test general browser functionality.'),
'group' => t('Browser'),
'name' => 'Browser',
'description' => 'Test general browser functionality.',
'group' => 'Browser',
);
}
......@@ -50,9 +50,9 @@ class BrowserBackendTestCase extends DrupalWebTestCase {
public static function getInfo() {
return array(
'name' => t('Browser - wrapper backends'),
'description' => t('Test stream and curl backends execution of GET and POST requests.'),
'group' => t('Browser'),
'name' => 'Browser - wrapper backends',
'description' => 'Test stream and curl backends execution of GET and POST requests.',
'group' => 'Browser',
);
}
......@@ -95,9 +95,9 @@ class BrowserPageTestCase extends DrupalWebTestCase {
public static function getInfo() {
return array(
'name' => t('Browser - page'),
'description' => t('Check "BrowserPage" class functionality.'),
'group' => t('Browser'),
'name' => 'Browser - page',
'description' => 'Check "BrowserPage" class functionality.',
'group' => 'Browser',
);
}
......
......@@ -1324,9 +1324,9 @@ class FormatDateUnitTest extends DrupalWebTestCase {
class DrupalAttributesUnitTest extends DrupalUnitTestCase {
public static function getInfo() {
return array(
'name' => t('HTML Attributes'),
'description' => t('Perform unit tests on the drupal_attributes() function.'),
'group' => t('System')
'name' => 'HTML Attributes',
'description' => 'Perform unit tests on the drupal_attributes() function.',
'group' => 'System',
);
}
......
......@@ -1937,9 +1937,9 @@ class FileDownloadTest extends FileTestCase {
class FileURLRewritingTest extends FileTestCase {
public static function getInfo() {
return array(
'name' => t('File URL rewriting'),
'description' => t('Tests for file URL rewriting.'),
'group' => t('File'),
'name' => 'File URL rewriting',
'description' => 'Tests for file URL rewriting.',
'group' => 'File',
);
}
......
......@@ -382,7 +382,7 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase {
return array(
'name' => 'Taxonomy term functions and forms.',
'description' => 'Test load, save and delete for taxonomy terms.',
'group' => 'Taxonomy'
'group' => 'Taxonomy',
);
}
......@@ -663,7 +663,7 @@ class TaxonomyHooksTestCase extends TaxonomyWebTestCase {
return array(
'name' => 'Taxonomy term hooks',
'description' => 'Hooks for taxonomy term load/save/delete.',
'group' => 'Taxonomy'
'group' => 'Taxonomy',
);
}
......@@ -714,9 +714,9 @@ class TaxonomyTermFieldTestCase extends TaxonomyWebTestCase {
public static function getInfo() {
return array(
'name' => t('Taxonomy term field'),
'description' => t('Test the creation of term fields.'),
'group' => t('Taxonomy')
'name' => 'Taxonomy term field',
'description' => 'Test the creation of term fields.',
'group' => 'Taxonomy',
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment