summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/simpletest.install4
-rw-r--r--modules/simpletest/simpletest.module10
-rw-r--r--modules/simpletest/simpletest.test4
-rw-r--r--modules/simpletest/tests/database_test.install6
-rw-r--r--modules/simpletest/tests/database_test.module6
-rw-r--r--modules/simpletest/tests/error_test.module2
-rw-r--r--modules/simpletest/tests/field_test.install6
-rw-r--r--modules/simpletest/tests/field_test.module28
-rw-r--r--modules/simpletest/tests/file_test.module20
-rw-r--r--modules/simpletest/tests/form_test.module2
-rw-r--r--modules/simpletest/tests/image_test.module2
-rw-r--r--modules/simpletest/tests/menu_test.module2
-rw-r--r--modules/simpletest/tests/session_test.module4
-rw-r--r--modules/simpletest/tests/system_test.module16
-rw-r--r--modules/simpletest/tests/taxonomy_test.install6
-rw-r--r--modules/simpletest/tests/taxonomy_test.module10
-rw-r--r--modules/simpletest/tests/xmlrpc_test.module2
17 files changed, 65 insertions, 65 deletions
diff --git a/modules/simpletest/simpletest.install b/modules/simpletest/simpletest.install
index 052ecdb3e..9adcc3a71 100644
--- a/modules/simpletest/simpletest.install
+++ b/modules/simpletest/simpletest.install
@@ -7,7 +7,7 @@
*/
/**
- * Implementation of hook_install().
+ * Implement hook_install().
*/
function simpletest_install() {
drupal_install_schema('simpletest');
@@ -99,7 +99,7 @@ function simpletest_get_file_count($directory, $filename) {
}
/**
- * Implementation of hook_uninstall().
+ * Implement hook_uninstall().
*/
function simpletest_uninstall() {
simpletest_clean_environment();
diff --git a/modules/simpletest/simpletest.module b/modules/simpletest/simpletest.module
index cad833381..51f6e21f3 100644
--- a/modules/simpletest/simpletest.module
+++ b/modules/simpletest/simpletest.module
@@ -7,7 +7,7 @@
*/
/**
- * Implementation of hook_help().
+ * Implement hook_help().
*/
function simpletest_help($path, $arg) {
switch ($path) {
@@ -22,7 +22,7 @@ function simpletest_help($path, $arg) {
}
/**
- * Implementation of hook_menu().
+ * Implement hook_menu().
*/
function simpletest_menu() {
$items['admin/development'] = array(
@@ -53,7 +53,7 @@ function simpletest_menu() {
}
/**
- * Implementation of hook_perm().
+ * Implement hook_perm().
*/
function simpletest_perm() {
return array(
@@ -65,7 +65,7 @@ function simpletest_perm() {
}
/**
- * Implementation of hook_theme().
+ * Implement hook_theme().
*/
function simpletest_theme() {
return array(
@@ -81,7 +81,7 @@ function simpletest_theme() {
}
/**
- * Implementation of hook_js_alter().
+ * Implement hook_js_alter().
*/
function simpletest_js_alter(&$javascript) {
// Since SimpleTest is a special use case for the table select, stick the
diff --git a/modules/simpletest/simpletest.test b/modules/simpletest/simpletest.test
index af5c3f152..227aa13e7 100644
--- a/modules/simpletest/simpletest.test
+++ b/modules/simpletest/simpletest.test
@@ -266,7 +266,7 @@ class SimpleTestFunctionalTest extends DrupalWebTestCase {
class SimpleTestMailCaptureTestCase extends DrupalWebTestCase {
/**
- * Implementation of getInfo().
+ * Implement getInfo().
*/
public static function getInfo() {
return array(
@@ -338,4 +338,4 @@ class SimpleTestMailCaptureTestCase extends DrupalWebTestCase {
$captured_emails = $this->drupalGetMails(array('id' => 'drupal_mail_test_4'));
$this->assertEqual(count($captured_emails), 2, t('All e-mails with the same id are returned when filtering by id.'), t('E-mail'));
}
-} \ No newline at end of file
+}
diff --git a/modules/simpletest/tests/database_test.install b/modules/simpletest/tests/database_test.install
index e16c0ad81..6b9607775 100644
--- a/modules/simpletest/tests/database_test.install
+++ b/modules/simpletest/tests/database_test.install
@@ -7,7 +7,7 @@
*/
/**
- * Implementation of hook_schema().
+ * Implement hook_schema().
*
* The database tests use the database API which depends on schema
* information for certain operations on certain databases.
@@ -206,14 +206,14 @@ function database_test_schema() {
}
/**
- * Implementation of hook_install().
+ * Implement hook_install().
*/
function database_test_install() {
drupal_install_schema('database_test');
}
/**
- * Implementation of hook_uninstall().
+ * Implement hook_uninstall().
*/
function database_test_uninstall() {
drupal_uninstall_schema('database_test');
diff --git a/modules/simpletest/tests/database_test.module b/modules/simpletest/tests/database_test.module
index fdb660dc0..df446deb8 100644
--- a/modules/simpletest/tests/database_test.module
+++ b/modules/simpletest/tests/database_test.module
@@ -2,7 +2,7 @@
// $Id$
/**
- * Implementation of hook_query_alter().
+ * Implement hook_query_alter().
*/
function database_test_query_alter(QueryAlterableInterface $query) {
@@ -34,14 +34,14 @@ function database_test_query_alter(QueryAlterableInterface $query) {
/**
- * Implementation of hook_query_TAG_alter(). Called by DatabaseTestCase::testAlterRemoveRange.
+ * Implement hook_query_TAG_alter(). Called by DatabaseTestCase::testAlterRemoveRange.
*/
function database_test_query_database_test_alter_remove_range_alter(QueryAlterableInterface $query) {
$query->range();
}
/**
- * Implementation of hook_menu().
+ * Implement hook_menu().
*/
function database_test_menu() {
$items['database_test/db_query_temporary'] = array(
diff --git a/modules/simpletest/tests/error_test.module b/modules/simpletest/tests/error_test.module
index 384f62bf3..e08c151b8 100644
--- a/modules/simpletest/tests/error_test.module
+++ b/modules/simpletest/tests/error_test.module
@@ -2,7 +2,7 @@
// $Id$
/**
- * Implementation of hook_menu().
+ * Implement hook_menu().
*/
function error_test_menu() {
$items['error-test/generate-warnings'] = array(
diff --git a/modules/simpletest/tests/field_test.install b/modules/simpletest/tests/field_test.install
index 7faa5ee56..1fa0eeb11 100644
--- a/modules/simpletest/tests/field_test.install
+++ b/modules/simpletest/tests/field_test.install
@@ -7,7 +7,7 @@
*/
/**
- * Implementation of hook_schema().
+ * Implement hook_schema().
*/
function field_test_schema() {
$schema['test_entity'] = array(
@@ -66,14 +66,14 @@ function field_test_schema() {
}
/**
- * Implementation of hook_install().
+ * Implement hook_install().
*/
function field_test_install() {
drupal_install_schema('field_test');
}
/**
- * Implementation of hook_uninstall().
+ * Implement hook_uninstall().
*/
function field_test_uninstall() {
drupal_uninstall_schema('field_test');
diff --git a/modules/simpletest/tests/field_test.module b/modules/simpletest/tests/field_test.module
index 7a3b544c6..8999cdaa3 100644
--- a/modules/simpletest/tests/field_test.module
+++ b/modules/simpletest/tests/field_test.module
@@ -5,7 +5,7 @@ define('FIELD_TEST_ELEMENT_ID', 1);
define('FIELD_TEST_BUNDLE', 'test_bundle');
/**
- * Implementation of hook_perm().
+ * Implement hook_perm().
*/
function field_test_perm() {
$perms = array(
@@ -22,7 +22,7 @@ function field_test_perm() {
}
/**
- * Implementation of hook_menu().
+ * Implement hook_menu().
*/
function field_test_menu() {
$items = array();
@@ -132,7 +132,7 @@ function field_test_delete_bundle($bundle) {
}
/**
- * Implementation of hook_field_build_modes().
+ * Implement hook_field_build_modes().
*/
function field_test_field_build_modes($obj_type) {
$modes = array();
@@ -326,7 +326,7 @@ function field_test_entity_form_submit_builder($form, &$form_state) {
*/
/**
- * Implementation of hook_field_info().
+ * Implement hook_field_info().
*
* This field provides a textfield which only accepts the value 1.
*/
@@ -348,7 +348,7 @@ function field_test_field_info() {
}
/**
- * Implementation of hook_field_schema().
+ * Implement hook_field_schema().
*/
function field_test_field_schema($field) {
return array(
@@ -366,7 +366,7 @@ function field_test_field_schema($field) {
}
/**
- * Implementation of hook_field_validate().
+ * Implement hook_field_validate().
*
* Possible error codes:
* - 'field_test_invalid': The value is invalid.
@@ -383,7 +383,7 @@ function field_test_field_validate($obj_type, $object, $field, $instance, $items
}
/**
- * Implementation of hook_field_sanitize().
+ * Implement hook_field_sanitize().
*/
function field_test_field_sanitize($obj_type, $object, $field, $instance, &$items) {
foreach ($items as $delta => $item) {
@@ -393,14 +393,14 @@ function field_test_field_sanitize($obj_type, $object, $field, $instance, &$item
}
/**
- * Implementation of hook_field_is_empty().
+ * Implement hook_field_is_empty().
*/
function field_test_field_is_empty($item, $field) {
return empty($item['value']);
}
/**
- * Implementation of hook_field_widget_info().
+ * Implement hook_field_widget_info().
*
* Here we indicate that the content module will handle
* the default value and multiple values for these widgets.
@@ -434,7 +434,7 @@ function field_test_field_widget_info() {
}
/**
- * Implementation of hook_field_widget().
+ * Implement hook_field_widget().
*
* Attach a single form element to the form. It will be built out and
* validated in the callback(s) listed in hook_elements. We build it
@@ -479,14 +479,14 @@ function field_test_field_widget(&$form, &$form_state, $field, $instance, $items
}
/**
- * Implementation of hook_field_widget_error().
+ * Implement hook_field_widget_error().
*/
function field_test_field_widget_error($element, $error) {
form_error($element['value'], $error['message']);
}
/**
- * Implementation of hook_field_formatter_info().
+ * Implement hook_field_formatter_info().
*/
function field_test_field_formatter_info() {
return array(
@@ -514,7 +514,7 @@ function field_test_field_formatter_info() {
}
/**
- * Implementation of hook_field_load().
+ * Implement hook_field_load().
*/
function field_test_field_load($obj_type, $objects, $field, $instances, &$items, $age) {
foreach ($items as $id => $item) {
@@ -532,7 +532,7 @@ function field_test_field_load($obj_type, $objects, $field, $instances, &$items,
}
/**
- * Implementation of hook_theme().
+ * Implement hook_theme().
*/
function field_test_theme() {
return array(
diff --git a/modules/simpletest/tests/file_test.module b/modules/simpletest/tests/file_test.module
index 0fd9cb715..3873c1ec9 100644
--- a/modules/simpletest/tests/file_test.module
+++ b/modules/simpletest/tests/file_test.module
@@ -10,7 +10,7 @@
*/
/**
- * Implementation of hook_menu().
+ * Implement hook_menu().
*/
function file_test_menu() {
$items['file-test/upload'] = array(
@@ -169,7 +169,7 @@ function file_test_set_return($op, $value) {
}
/**
- * Implementation of hook_file_load().
+ * Implement hook_file_load().
*/
function file_test_file_load($files) {
foreach ($files as $file) {
@@ -181,7 +181,7 @@ function file_test_file_load($files) {
}
/**
- * Implementation of hook_file_validate().
+ * Implement hook_file_validate().
*/
function file_test_file_validate($file) {
_file_test_log_call('validate', array($file));
@@ -189,7 +189,7 @@ function file_test_file_validate($file) {
}
/**
- * Implementation of hook_file_download().
+ * Implement hook_file_download().
*/
function file_test_file_download($file) {
_file_test_log_call('download', array($file));
@@ -197,7 +197,7 @@ function file_test_file_download($file) {
}
/**
- * Implementation of hook_file_references().
+ * Implement hook_file_references().
*/
function file_test_file_references($file) {
_file_test_log_call('references', array($file));
@@ -205,35 +205,35 @@ function file_test_file_references($file) {
}
/**
- * Implementation of hook_file_insert().
+ * Implement hook_file_insert().
*/
function file_test_file_insert($file) {
_file_test_log_call('insert', array($file));
}
/**
- * Implementation of hook_file_update().
+ * Implement hook_file_update().
*/
function file_test_file_update($file) {
_file_test_log_call('update', array($file));
}
/**
- * Implementation of hook_file_copy().
+ * Implement hook_file_copy().
*/
function file_test_file_copy($file, $source) {
_file_test_log_call('copy', array($file, $source));
}
/**
- * Implementation of hook_file_move().
+ * Implement hook_file_move().
*/
function file_test_file_move($file, $source) {
_file_test_log_call('move', array($file, $source));
}
/**
- * Implementation of hook_file_delete().
+ * Implement hook_file_delete().
*/
function file_test_file_delete($file) {
_file_test_log_call('delete', array($file));
diff --git a/modules/simpletest/tests/form_test.module b/modules/simpletest/tests/form_test.module
index f9053c57e..34b495f5d 100644
--- a/modules/simpletest/tests/form_test.module
+++ b/modules/simpletest/tests/form_test.module
@@ -7,7 +7,7 @@
*/
/**
- * Implementation of hook_menu().
+ * Implement hook_menu().
*/
function form_test_menu() {
$items = array();
diff --git a/modules/simpletest/tests/image_test.module b/modules/simpletest/tests/image_test.module
index ed2cd320f..1428d303c 100644
--- a/modules/simpletest/tests/image_test.module
+++ b/modules/simpletest/tests/image_test.module
@@ -7,7 +7,7 @@
*/
/**
- * Implementation of hook_image_toolkits().
+ * Implement hook_image_toolkits().
*/
function image_test_image_toolkits() {
return array(
diff --git a/modules/simpletest/tests/menu_test.module b/modules/simpletest/tests/menu_test.module
index 1b8daa4e8..26114ef97 100644
--- a/modules/simpletest/tests/menu_test.module
+++ b/modules/simpletest/tests/menu_test.module
@@ -7,7 +7,7 @@
*/
/**
- * Implementation of hook_menu().
+ * Implement hook_menu().
*/
function menu_test_menu() {
// The name of the menu changes during the course of the test. Using a $_GET.
diff --git a/modules/simpletest/tests/session_test.module b/modules/simpletest/tests/session_test.module
index 4a3f51f7a..352a21e25 100644
--- a/modules/simpletest/tests/session_test.module
+++ b/modules/simpletest/tests/session_test.module
@@ -2,7 +2,7 @@
// $Id$
/**
- * Implementation of hook_menu().
+ * Implement hook_menu().
*/
function session_test_menu() {
$items['session-test/get'] = array(
@@ -125,7 +125,7 @@ function _session_test_set_not_started() {
}
/**
- * Implementation of hook_user().
+ * Implement hook_user().
*/
function session_test_user_login($edit = array(), $user = NULL) {
if ($edit['name'] == 'session_test_user') {
diff --git a/modules/simpletest/tests/system_test.module b/modules/simpletest/tests/system_test.module
index 6da183b24..432737f52 100644
--- a/modules/simpletest/tests/system_test.module
+++ b/modules/simpletest/tests/system_test.module
@@ -2,7 +2,7 @@
// $Id$
/**
- * Implementation of hook_menu().
+ * Implement hook_menu().
*/
function system_test_menu() {
$items['system-test/auth'] = array(
@@ -96,7 +96,7 @@ function system_test_destination() {
}
/**
- * Implementation of hook_modules_installed().
+ * Implement hook_modules_installed().
*/
function system_test_modules_installed($modules) {
if (in_array('aggregator', $modules)) {
@@ -105,7 +105,7 @@ function system_test_modules_installed($modules) {
}
/**
- * Implementation of hook_modules_enabled().
+ * Implement hook_modules_enabled().
*/
function system_test_modules_enabled($modules) {
if (in_array('aggregator', $modules)) {
@@ -114,7 +114,7 @@ function system_test_modules_enabled($modules) {
}
/**
- * Implementation of hook_modules_disabled().
+ * Implement hook_modules_disabled().
*/
function system_test_modules_disabled($modules) {
if (in_array('aggregator', $modules)) {
@@ -123,7 +123,7 @@ function system_test_modules_disabled($modules) {
}
/**
- * Implementation of hook_modules_uninstalled().
+ * Implement hook_modules_uninstalled().
*/
function system_test_modules_uninstalled($modules) {
if (in_array('aggregator', $modules)) {
@@ -132,14 +132,14 @@ function system_test_modules_uninstalled($modules) {
}
/**
- * Implementation of hook_boot().
+ * Implement hook_boot().
*/
function system_test_boot() {
watchdog('system_test', 'hook_boot');
}
/**
- * Implementation of hook_init().
+ * Implement hook_init().
*/
function system_test_init() {
// Used by FrontPageTestCase to get the results of drupal_is_front_page().
@@ -149,7 +149,7 @@ function system_test_init() {
}
/**
- * Implementation of hook_exit().
+ * Implement hook_exit().
*/
function system_test_exit() {
watchdog('system_test', 'hook_exit');
diff --git a/modules/simpletest/tests/taxonomy_test.install b/modules/simpletest/tests/taxonomy_test.install
index 131a6b459..ae741f0e6 100644
--- a/modules/simpletest/tests/taxonomy_test.install
+++ b/modules/simpletest/tests/taxonomy_test.install
@@ -7,7 +7,7 @@
*/
/**
- * Implementation of hook_schema().
+ * Implement hook_schema().
*/
function taxonomy_test_schema() {
$schema['term_antonym'] = array(
@@ -44,14 +44,14 @@ function taxonomy_test_schema() {
}
/**
- * Implementation of hook_install().
+ * Implement hook_install().
*/
function taxonomy_test_install() {
drupal_install_schema('taxonomy_test');
}
/**
- * Implementation of hook_uninstall().
+ * Implement hook_uninstall().
*/
function taxonomy_test_uninstall() {
drupal_uninstall_schema('taxonomy_test');
diff --git a/modules/simpletest/tests/taxonomy_test.module b/modules/simpletest/tests/taxonomy_test.module
index d90148fa2..2fa05b15c 100644
--- a/modules/simpletest/tests/taxonomy_test.module
+++ b/modules/simpletest/tests/taxonomy_test.module
@@ -7,7 +7,7 @@
*/
/**
- * Implementation of hook_taxonomy_term_load().
+ * Implement hook_taxonomy_term_load().
*/
function taxonomy_test_taxonomy_term_load(&$terms) {
foreach ($terms as $term) {
@@ -16,7 +16,7 @@ function taxonomy_test_taxonomy_term_load(&$terms) {
}
/**
- * Implementation of hook_taxonomy_term_insert().
+ * Implement hook_taxonomy_term_insert().
*/
function taxonomy_test_taxonomy_term_insert($term) {
if (!empty($term->antonyms)) {
@@ -29,7 +29,7 @@ function taxonomy_test_taxonomy_term_insert($term) {
}
/**
- * Implementation of hook_taxonomy_term_update().
+ * Implement hook_taxonomy_term_update().
*/
function taxonomy_test_taxonomy_term_update($term) {
taxonomy_test_taxonomy_term_delete($term);
@@ -43,14 +43,14 @@ function taxonomy_test_taxonomy_term_update($term) {
}
/**
- * Implementation of hook_taxonomy_term_delete().
+ * Implement hook_taxonomy_term_delete().
*/
function taxonomy_test_taxonomy_term_delete($term) {
db_delete('term_antonym')->condition('tid', $term->tid)->execute();
}
/**
- * Implementation of hook_form_alter().
+ * Implement hook_form_alter().
*/
function taxonomy_test_form_alter(&$form, $form_state, $form_id) {
if ($form_id == 'taxonomy_form_term') {
diff --git a/modules/simpletest/tests/xmlrpc_test.module b/modules/simpletest/tests/xmlrpc_test.module
index fba5a0430..d776fdec1 100644
--- a/modules/simpletest/tests/xmlrpc_test.module
+++ b/modules/simpletest/tests/xmlrpc_test.module
@@ -47,7 +47,7 @@ function xmlrpc_test_simpleStructReturnTest($number) {
}
/**
- * Implementation of hook_xmlrpc()
+ * Implement hook_xmlrpc()
*/
function xmlrpc_test_xmlrpc() {
return array(