summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/file/tests/file.test32
-rw-r--r--modules/simpletest/tests/bootstrap.test6
-rw-r--r--modules/simpletest/tests/browser.test18
-rw-r--r--modules/simpletest/tests/common.test6
-rw-r--r--modules/simpletest/tests/file.test6
-rw-r--r--modules/taxonomy/taxonomy.test10
6 files changed, 39 insertions, 39 deletions
diff --git a/modules/file/tests/file.test b/modules/file/tests/file.test
index c3d7622c8..2044102e0 100644
--- a/modules/file/tests/file.test
+++ b/modules/file/tests/file.test
@@ -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',
);
}
diff --git a/modules/simpletest/tests/bootstrap.test b/modules/simpletest/tests/bootstrap.test
index ed7faad9e..ddc94460d 100644
--- a/modules/simpletest/tests/bootstrap.test
+++ b/modules/simpletest/tests/bootstrap.test
@@ -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',
);
}
diff --git a/modules/simpletest/tests/browser.test b/modules/simpletest/tests/browser.test
index 1f58576ee..f22f7b838 100644
--- a/modules/simpletest/tests/browser.test
+++ b/modules/simpletest/tests/browser.test
@@ -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',
);
}
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test
index 2ad58a10a..d32369441 100644
--- a/modules/simpletest/tests/common.test
+++ b/modules/simpletest/tests/common.test
@@ -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',
);
}
diff --git a/modules/simpletest/tests/file.test b/modules/simpletest/tests/file.test
index 8ca1867ee..8e17d1398 100644
--- a/modules/simpletest/tests/file.test
+++ b/modules/simpletest/tests/file.test
@@ -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',
);
}
diff --git a/modules/taxonomy/taxonomy.test b/modules/taxonomy/taxonomy.test
index dc3a4733d..16114c26d 100644
--- a/modules/taxonomy/taxonomy.test
+++ b/modules/taxonomy/taxonomy.test
@@ -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',
);
}