summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r--modules/simpletest/tests/actions.test3
-rw-r--r--modules/simpletest/tests/cache.test9
-rw-r--r--modules/simpletest/tests/common.test33
-rw-r--r--modules/simpletest/tests/database_test.test14
-rw-r--r--modules/simpletest/tests/file.test51
-rw-r--r--modules/simpletest/tests/registry.test14
-rw-r--r--modules/simpletest/tests/session.test8
-rw-r--r--modules/simpletest/tests/taxonomy_test.test6
-rw-r--r--modules/simpletest/tests/xmlrpc.test12
9 files changed, 1 insertions, 149 deletions
diff --git a/modules/simpletest/tests/actions.test b/modules/simpletest/tests/actions.test
index 68b7a1b98..3965500ef 100644
--- a/modules/simpletest/tests/actions.test
+++ b/modules/simpletest/tests/actions.test
@@ -2,9 +2,6 @@
// $Id$
class ActionsConfigurationTestCase extends DrupalWebTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Actions configuration'),
diff --git a/modules/simpletest/tests/cache.test b/modules/simpletest/tests/cache.test
index e082da3fd..61acfa8e6 100644
--- a/modules/simpletest/tests/cache.test
+++ b/modules/simpletest/tests/cache.test
@@ -102,9 +102,6 @@ class CacheTestCase extends DrupalWebTestCase {
}
class CacheSavingCase extends CacheTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Cache saving test'),
@@ -166,9 +163,6 @@ class CacheSavingCase extends CacheTestCase {
}
class CacheClearCase extends CacheTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Cache clear test'),
@@ -177,9 +171,6 @@ class CacheClearCase extends CacheTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
$this->default_table = 'cache_page';
$this->default_value = $this->randomName(10);
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test
index ec04641e1..60b397ebf 100644
--- a/modules/simpletest/tests/common.test
+++ b/modules/simpletest/tests/common.test
@@ -5,9 +5,6 @@ class CommonSizeTestCase extends DrupalWebTestCase {
protected $exact_test_cases;
protected $rounded_test_cases;
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Size parsing test'),
@@ -16,9 +13,6 @@ class CommonSizeTestCase extends DrupalWebTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
$kb = DRUPAL_KILOBYTE;
$this->exact_test_cases = array(
@@ -115,9 +109,6 @@ class DrupalTagsHandlingTestCase extends DrupalWebTestCase {
'"Drupal, although it rhymes with sloopal, is as awesome as a troopal!"' => 'Drupal, although it rhymes with sloopal, is as awesome as a troopal!',
);
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Drupal tags handling'),
@@ -168,9 +159,6 @@ class DrupalTagsHandlingTestCase extends DrupalWebTestCase {
* Test the Drupal CSS system.
*/
class CascadingStylesheetsTestCase extends DrupalWebTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Cascading stylesheets'),
@@ -179,9 +167,6 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
parent::setUp();
// Reset drupal_add_css() before each test.
@@ -218,9 +203,6 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase {
* Test drupal_http_request().
*/
class DrupalHTTPRequestTestCase extends DrupalWebTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Drupal HTTP request'),
@@ -229,9 +211,6 @@ class DrupalHTTPRequestTestCase extends DrupalWebTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
parent::setUp('system_test');
}
@@ -307,9 +286,6 @@ class DrupalHTTPRequestTestCase extends DrupalWebTestCase {
* Testing drupal_set_content and drupal_get_content.
*/
class DrupalSetContentTestCase extends DrupalWebTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Drupal set/get content'),
@@ -361,9 +337,6 @@ class JavaScriptTestCase extends DrupalWebTestCase {
*/
var $preprocess_js = NULL;
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('JavaScript'),
@@ -372,9 +345,6 @@ class JavaScriptTestCase extends DrupalWebTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
// Enable Locale and SimpleTest in the test environment.
parent::setUp('locale', 'simpletest');
@@ -387,9 +357,6 @@ class JavaScriptTestCase extends DrupalWebTestCase {
drupal_add_js(NULL, NULL, TRUE);
}
- /**
- * Implementation of tearDown().
- */
function tearDown() {
// Restore configured value for JavaScript preprocessing.
variable_set('preprocess_js', $this->preprocess_js);
diff --git a/modules/simpletest/tests/database_test.test b/modules/simpletest/tests/database_test.test
index 377baa2e3..88b5f36d2 100644
--- a/modules/simpletest/tests/database_test.test
+++ b/modules/simpletest/tests/database_test.test
@@ -1978,10 +1978,6 @@ class DatabaseLoggingTestCase extends DatabaseTestCase {
* Range query tests.
*/
class DatabaseRangeQueryTestCase extends DrupalWebTestCase {
-
- /**
- * Define metadata for this test subclass.
- */
function getInfo() {
return array(
'name' => t('Range query test'),
@@ -1990,9 +1986,6 @@ class DatabaseRangeQueryTestCase extends DrupalWebTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
parent::setUp('database_test');
}
@@ -2016,10 +2009,6 @@ class DatabaseRangeQueryTestCase extends DrupalWebTestCase {
* Temporary query tests.
*/
class DatabaseTemporaryQueryTestCase extends DrupalWebTestCase {
-
- /**
- * Define metadata for this test subclass.
- */
function getInfo() {
return array(
'name' => t('Temporary query test'),
@@ -2028,9 +2017,6 @@ class DatabaseTemporaryQueryTestCase extends DrupalWebTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
parent::setUp('database_test');
}
diff --git a/modules/simpletest/tests/file.test b/modules/simpletest/tests/file.test
index 5da57ee5a..d27718cb9 100644
--- a/modules/simpletest/tests/file.test
+++ b/modules/simpletest/tests/file.test
@@ -98,9 +98,6 @@ class FileTestCase extends DrupalWebTestCase {
* hooks.
*/
class FileHookTestCase extends FileTestCase {
- /**
- * Implementation of setUp().
- */
function setUp() {
// Install file_test module
parent::setUp('file_test');
@@ -137,9 +134,6 @@ class FileHookTestCase extends FileTestCase {
* This will run tests against the file validation functions (file_validate_*).
*/
class FileValidatorTest extends DrupalWebTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('File validator tests'),
@@ -148,9 +142,6 @@ class FileValidatorTest extends DrupalWebTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
parent::setUp();
@@ -301,9 +292,6 @@ class FileValidatorTest extends DrupalWebTestCase {
* Tests the file_unmanaged_save_data() function.
*/
class FileUnmanagedSaveDataTest extends FileTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Unmanaged file save data'),
@@ -338,9 +326,6 @@ class FileUnmanagedSaveDataTest extends FileTestCase {
* Test the file_save_upload() function.
*/
class FileSaveUploadTest extends FileHookTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('File uploading'),
@@ -377,9 +362,6 @@ class FileSaveUploadTest extends FileHookTestCase {
* Directory related tests.
*/
class FileDirectoryTest extends FileTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('File paths and directories'),
@@ -545,9 +527,6 @@ class FileDirectoryTest extends FileTestCase {
* Tests the file_scan_directory() function.
*/
class FileScanDirectoryTest extends FileTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('File scan directory'),
@@ -577,9 +556,6 @@ class FileScanDirectoryTest extends FileTestCase {
* Deletion related tests.
*/
class FileUnmanagedDeleteTest extends FileTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Unmanaged file delete'),
@@ -626,9 +602,6 @@ class FileUnmanagedDeleteTest extends FileTestCase {
* Unmanaged move related tests.
*/
class FileUnmanagedMoveTest extends FileTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Unmanaged file moving'),
@@ -701,9 +674,6 @@ class FileUnmanagedMoveTest extends FileTestCase {
* Unmanaged copy related tests.
*/
class FileUnmanagedCopyTest extends FileTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Unmanaged file copying'),
@@ -791,9 +761,6 @@ class FileUnmanagedCopyTest extends FileTestCase {
* Deletion related tests.
*/
class FileDeleteTest extends FileHookTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('File delete'),
@@ -826,9 +793,6 @@ class FileDeleteTest extends FileHookTestCase {
* Move related tests
*/
class FileMoveTest extends FileHookTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('File moving'),
@@ -862,9 +826,6 @@ class FileMoveTest extends FileHookTestCase {
* Copy related tests.
*/
class FileCopyTest extends FileHookTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('File copying'),
@@ -903,9 +864,6 @@ class FileCopyTest extends FileHookTestCase {
* Tests the file_load() function.
*/
class FileLoadTest extends FileHookTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('File loading'),
@@ -978,9 +936,6 @@ class FileLoadTest extends FileHookTestCase {
* Tests the file_save() function.
*/
class FileSaveTest extends FileHookTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('File saving'),
@@ -1030,9 +985,6 @@ class FileSaveTest extends FileHookTestCase {
* Tests the file_validate() function..
*/
class FileValidateTest extends FileHookTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('File validate'),
@@ -1072,9 +1024,6 @@ class FileValidateTest extends FileHookTestCase {
* Tests the file_save_data() function.
*/
class FileSaveDataTest extends FileHookTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('File save data'),
diff --git a/modules/simpletest/tests/registry.test b/modules/simpletest/tests/registry.test
index 794403dac..82d33b51b 100644
--- a/modules/simpletest/tests/registry.test
+++ b/modules/simpletest/tests/registry.test
@@ -2,10 +2,6 @@
// $Id$
class RegistryParseFileTestCase extends DrupalWebTestCase {
-
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Registry parse file test'),
@@ -14,9 +10,6 @@ class RegistryParseFileTestCase extends DrupalWebTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
$this->fileName = 'registry_test_' . md5(rand());
$this->functionName = 'registry_test_function' . md5(rand());
@@ -56,12 +49,8 @@ CONTENTS;
}
class RegistryParseFilesTestCase extends DrupalWebTestCase {
-
protected $fileTypes = array('new', 'existing_changed');
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Registry parse files test'),
@@ -70,9 +59,6 @@ class RegistryParseFilesTestCase extends DrupalWebTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
parent::setUp();
// Create files with some php to parse - one 'new', one 'existing' so
diff --git a/modules/simpletest/tests/session.test b/modules/simpletest/tests/session.test
index 751917f12..4512d9cd4 100644
--- a/modules/simpletest/tests/session.test
+++ b/modules/simpletest/tests/session.test
@@ -7,12 +7,8 @@
*/
class SessionTestCase extends DrupalWebTestCase {
-
protected $saved_cookie;
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Session tests'),
@@ -21,12 +17,10 @@ class SessionTestCase extends DrupalWebTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
parent::setUp('session_test');
}
+
/**
* Implementation of curlHeaderCallback().
*/
diff --git a/modules/simpletest/tests/taxonomy_test.test b/modules/simpletest/tests/taxonomy_test.test
index 27dfe308b..9d51e328f 100644
--- a/modules/simpletest/tests/taxonomy_test.test
+++ b/modules/simpletest/tests/taxonomy_test.test
@@ -2,9 +2,6 @@
// $Id$
class TaxonomyHooksTestCase extends DrupalWebTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('Taxonomy term hooks'),
@@ -13,9 +10,6 @@ class TaxonomyHooksTestCase extends DrupalWebTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
parent::setUp('taxonomy', 'taxonomy_test');
$taxonomy_admin = $this->drupalCreateUser(array('administer taxonomy'));
diff --git a/modules/simpletest/tests/xmlrpc.test b/modules/simpletest/tests/xmlrpc.test
index db35c79ed..814c65f8e 100644
--- a/modules/simpletest/tests/xmlrpc.test
+++ b/modules/simpletest/tests/xmlrpc.test
@@ -2,9 +2,6 @@
// $Id$
class XMLRPCValidator1IncTestCase extends DrupalWebTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('XML-RPC validator'),
@@ -13,9 +10,6 @@ class XMLRPCValidator1IncTestCase extends DrupalWebTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
parent::setUp('xmlrpc_test');
}
@@ -128,9 +122,6 @@ class XMLRPCValidator1IncTestCase extends DrupalWebTestCase {
}
class XMLRPCMessagesTestCase extends DrupalWebTestCase {
- /**
- * Implementation of getInfo().
- */
function getInfo() {
return array(
'name' => t('XML-RPC message'),
@@ -139,9 +130,6 @@ class XMLRPCMessagesTestCase extends DrupalWebTestCase {
);
}
- /**
- * Implementation of setUp().
- */
function setUp() {
parent::setUp('xmlrpc_test');
}