diff options
Diffstat (limited to 'modules/simpletest/tests')
19 files changed, 67 insertions, 65 deletions
diff --git a/modules/simpletest/tests/actions_loop_test.install b/modules/simpletest/tests/actions_loop_test.install index cd6582d52..b0cd66708 100644 --- a/modules/simpletest/tests/actions_loop_test.install +++ b/modules/simpletest/tests/actions_loop_test.install @@ -2,7 +2,7 @@ // $Id$ /** - * Implementation of hook_install(). + * Implements hook_install(). */ function actions_loop_test_install() { db_update('system') diff --git a/modules/simpletest/tests/actions_loop_test.module b/modules/simpletest/tests/actions_loop_test.module index a31415891..9c966c3e0 100644 --- a/modules/simpletest/tests/actions_loop_test.module +++ b/modules/simpletest/tests/actions_loop_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_trigger_info(). + * Implements hook_trigger_info(). */ function actions_loop_test_trigger_info() { return array( @@ -15,7 +15,7 @@ function actions_loop_test_trigger_info() { } /** - * Implement hook_watchdog(). + * Implements hook_watchdog(). */ function actions_loop_test_watchdog(array $log_entry) { // If the triggering actions are not explicitly enabled, abort. @@ -36,7 +36,7 @@ function actions_loop_test_watchdog(array $log_entry) { } /** - * Implement hook_init(). + * Implements hook_init(). */ function actions_loop_test_init() { if (!empty($_GET['trigger_actions_on_watchdog'])) { @@ -45,7 +45,7 @@ function actions_loop_test_init() { } /** - * Implement hook_action_info(). + * Implements hook_action_info(). */ function actions_loop_test_action_info() { return array( diff --git a/modules/simpletest/tests/ajax_test.module b/modules/simpletest/tests/ajax_test.module index 27bf3bf16..958617041 100644 --- a/modules/simpletest/tests/ajax_test.module +++ b/modules/simpletest/tests/ajax_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function ajax_test_menu() { $items['ajax-test/render'] = array( diff --git a/modules/simpletest/tests/common_test.module b/modules/simpletest/tests/common_test.module index e8c6602c2..36697b5af 100644 --- a/modules/simpletest/tests/common_test.module +++ b/modules/simpletest/tests/common_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function common_test_menu() { $items['common-test/drupal_goto'] = array( @@ -61,7 +61,7 @@ function common_test_drupal_goto_land_fail() { } /** - * Implement hook_drupal_goto_alter(). + * Implements hook_drupal_goto_alter(). */ function common_test_drupal_goto_alter(&$path, &$options, &$http_response_code) { if ($path == 'common-test/drupal_goto/fail') { @@ -70,7 +70,7 @@ function common_test_drupal_goto_alter(&$path, &$options, &$http_response_code) } /** - * Implement hook_TYPE_alter(). + * Implements hook_TYPE_alter(). */ function common_test_drupal_alter_alter(&$data, &$arg2 = NULL, &$arg3 = NULL) { // Alter first argument. @@ -101,7 +101,7 @@ function common_test_drupal_alter_alter(&$data, &$arg2 = NULL, &$arg3 = NULL) { } /** - * Implement hook_TYPE_alter() on behalf of Garland theme. + * Implements hook_TYPE_alter() on behalf of Garland theme. * * Same as common_test_drupal_alter_alter(), but here, we verify that themes * can also alter and come last. @@ -135,7 +135,7 @@ function garland_drupal_alter_alter(&$data, &$arg2 = NULL, &$arg3 = NULL) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function common_test_theme() { return array( @@ -153,7 +153,7 @@ function theme_common_test_foo($variables) { } /** - * Implementation of hook_library_alter(). + * Implements hook_library_alter(). */ function common_test_library_alter(&$libraries, $module) { if ($module == 'system' && isset($libraries['farbtastic'])) { @@ -165,7 +165,7 @@ function common_test_library_alter(&$libraries, $module) { } /** - * Implementation of hook_library(). + * Implements hook_library(). * * Adds Farbtastic in a different version. */ diff --git a/modules/simpletest/tests/database_test.install b/modules/simpletest/tests/database_test.install index b9fe61ab4..4ecf74bc2 100644 --- a/modules/simpletest/tests/database_test.install +++ b/modules/simpletest/tests/database_test.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). * * The database tests use the database API which depends on schema * information for certain operations on certain databases. diff --git a/modules/simpletest/tests/database_test.module b/modules/simpletest/tests/database_test.module index 4a6a95c07..2aaa14824 100644 --- a/modules/simpletest/tests/database_test.module +++ b/modules/simpletest/tests/database_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_query_alter(). + * Implements hook_query_alter(). */ function database_test_query_alter(QueryAlterableInterface $query) { @@ -34,14 +34,16 @@ function database_test_query_alter(QueryAlterableInterface $query) { /** - * Implement hook_query_TAG_alter(). Called by DatabaseTestCase::testAlterRemoveRange. + * Implements hook_query_TAG_alter(). + * + * Called by DatabaseTestCase::testAlterRemoveRange. */ function database_test_query_database_test_alter_remove_range_alter(QueryAlterableInterface $query) { $query->range(); } /** - * Implement hook_menu(). + * Implements 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 c9a859dbe..1e0830436 100644 --- a/modules/simpletest/tests/error_test.module +++ b/modules/simpletest/tests/error_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function error_test_menu() { $items['error-test/generate-warnings'] = array( diff --git a/modules/simpletest/tests/file_test.module b/modules/simpletest/tests/file_test.module index e9d4ce1f8..3832b22c3 100644 --- a/modules/simpletest/tests/file_test.module +++ b/modules/simpletest/tests/file_test.module @@ -15,7 +15,7 @@ define('FILE_URL_TEST_CDN_2', 'http://cdn2.example.com'); /** - * Implement hook_menu(). + * Implements hook_menu(). */ function file_test_menu() { $items['file-test/upload'] = array( @@ -29,7 +29,7 @@ function file_test_menu() { } /** - * Implement hook_stream_wrappers(). + * Implements hook_stream_wrappers(). */ function file_test_stream_wrappers() { return array( @@ -199,7 +199,7 @@ function file_test_set_return($op, $value) { } /** - * Implement hook_file_load(). + * Implements hook_file_load(). */ function file_test_file_load($files) { foreach ($files as $file) { @@ -211,7 +211,7 @@ function file_test_file_load($files) { } /** - * Implement hook_file_validate(). + * Implements hook_file_validate(). */ function file_test_file_validate($file) { _file_test_log_call('validate', array($file)); @@ -219,7 +219,7 @@ function file_test_file_validate($file) { } /** - * Implement hook_file_download(). + * Implements hook_file_download(). */ function file_test_file_download($uri) { _file_test_log_call('download', array($uri)); @@ -227,7 +227,7 @@ function file_test_file_download($uri) { } /** - * Implement hook_file_references(). + * Implements hook_file_references(). */ function file_test_file_references($file) { _file_test_log_call('references', array($file)); @@ -235,42 +235,42 @@ function file_test_file_references($file) { } /** - * Implement hook_file_insert(). + * Implements hook_file_insert(). */ function file_test_file_insert($file) { _file_test_log_call('insert', array($file)); } /** - * Implement hook_file_update(). + * Implements hook_file_update(). */ function file_test_file_update($file) { _file_test_log_call('update', array($file)); } /** - * Implement hook_file_copy(). + * Implements hook_file_copy(). */ function file_test_file_copy($file, $source) { _file_test_log_call('copy', array($file, $source)); } /** - * Implement hook_file_move(). + * Implements hook_file_move(). */ function file_test_file_move($file, $source) { _file_test_log_call('move', array($file, $source)); } /** - * Implement hook_file_delete(). + * Implements hook_file_delete(). */ function file_test_file_delete($file) { _file_test_log_call('delete', array($file)); } /** - * Implement hook_file_url_alter(). + * Implements hook_file_url_alter(). */ function file_test_file_url_alter(&$uri) { // Only run this hook when this variable is set. Otherwise, we'd have to add @@ -315,7 +315,7 @@ function file_test_file_url_alter(&$uri) { } /** - * Implementation of hook_file_mimetype_mapping_alter(). + * Implements hook_file_mimetype_mapping_alter(). */ function file_test_file_mimetype_mapping_alter(&$mapping) { // Add new mappings. diff --git a/modules/simpletest/tests/filter_test.module b/modules/simpletest/tests/filter_test.module index dcdbf79ad..691d2231f 100644 --- a/modules/simpletest/tests/filter_test.module +++ b/modules/simpletest/tests/filter_test.module @@ -7,21 +7,21 @@ */ /** - * Implement hook_filter_format_insert(). + * Implements hook_filter_format_insert(). */ function filter_test_filter_format_insert($format) { drupal_set_message('hook_filter_format_insert invoked.'); } /** - * Implement hook_filter_format_update(). + * Implements hook_filter_format_update(). */ function filter_test_filter_format_update($format) { drupal_set_message('hook_filter_format_update invoked.'); } /** - * Implement hook_filter_format_delete(). + * Implements hook_filter_format_delete(). */ function filter_test_filter_format_delete($format, $default) { drupal_set_message('hook_filter_format_delete invoked.'); diff --git a/modules/simpletest/tests/form_test.module b/modules/simpletest/tests/form_test.module index c9c208d53..024917b86 100644 --- a/modules/simpletest/tests/form_test.module +++ b/modules/simpletest/tests/form_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function form_test_menu() { $items['form-test/validate'] = array( diff --git a/modules/simpletest/tests/image_test.module b/modules/simpletest/tests/image_test.module index 695485730..e5c3f0e42 100644 --- a/modules/simpletest/tests/image_test.module +++ b/modules/simpletest/tests/image_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_image_toolkits(). + * Implements 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 df1c49781..a89451780 100644 --- a/modules/simpletest/tests/menu_test.module +++ b/modules/simpletest/tests/menu_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function menu_test_menu() { // The name of the menu changes during the course of the test. Using a $_GET. @@ -139,7 +139,7 @@ function menu_test_menu_name($new_name = '') { } /** - * Implement hook_menu_link_insert(). + * Implements hook_menu_link_insert(). * * @return * A random string. @@ -149,7 +149,7 @@ function menu_test_menu_link_insert($item) { } /** - * Implement hook_menu_link_update(). + * Implements hook_menu_link_update(). * * @return * A random string. @@ -159,7 +159,7 @@ function menu_test_menu_link_update($item) { } /** - * Implement hook_menu_link_delete(). + * Implements hook_menu_link_delete(). * * @return * A random string. diff --git a/modules/simpletest/tests/module_test.module b/modules/simpletest/tests/module_test.module index 331a9d927..d10a2935f 100644 --- a/modules/simpletest/tests/module_test.module +++ b/modules/simpletest/tests/module_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_permission(). + * Implements hook_permission(). */ function module_test_permission() { return array( diff --git a/modules/simpletest/tests/session_test.module b/modules/simpletest/tests/session_test.module index d479aba71..bf6c302e2 100644 --- a/modules/simpletest/tests/session_test.module +++ b/modules/simpletest/tests/session_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function session_test_menu() { $items['session-test/get'] = array( @@ -54,7 +54,7 @@ function session_test_menu() { } /** - * Implement hook_boot(). + * Implements hook_boot(). */ function session_test_boot() { header('X-Session-Empty: ' . intval(empty($_SESSION))); @@ -133,7 +133,7 @@ function _session_test_set_not_started() { } /** - * Implement hook_user(). + * Implements hook_user(). */ function session_test_user_login($edit = array(), $user = NULL) { if ($user->name == 'session_test_user') { @@ -144,14 +144,14 @@ function session_test_user_login($edit = array(), $user = NULL) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function session_test_form_user_login_alter(&$form) { $form['#https'] = TRUE; } /** - * Implement hook_drupal_goto_alter(). + * Implements hook_drupal_goto_alter(). * * Force the redirection to go to a non-secure page after being on a secure * page through https.php. diff --git a/modules/simpletest/tests/system_test.module b/modules/simpletest/tests/system_test.module index 53080a86b..213dd1fc0 100644 --- a/modules/simpletest/tests/system_test.module +++ b/modules/simpletest/tests/system_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function system_test_menu() { $items['admin/system-test/batch-theme'] = array( @@ -175,7 +175,7 @@ function system_test_destination() { } /** - * Implement hook_modules_installed(). + * Implements hook_modules_installed(). */ function system_test_modules_installed($modules) { if (in_array('aggregator', $modules)) { @@ -184,7 +184,7 @@ function system_test_modules_installed($modules) { } /** - * Implement hook_modules_enabled(). + * Implements hook_modules_enabled(). */ function system_test_modules_enabled($modules) { if (in_array('aggregator', $modules)) { @@ -193,7 +193,7 @@ function system_test_modules_enabled($modules) { } /** - * Implement hook_modules_disabled(). + * Implements hook_modules_disabled(). */ function system_test_modules_disabled($modules) { if (in_array('aggregator', $modules)) { @@ -202,7 +202,7 @@ function system_test_modules_disabled($modules) { } /** - * Implement hook_modules_uninstalled(). + * Implements hook_modules_uninstalled(). */ function system_test_modules_uninstalled($modules) { if (in_array('aggregator', $modules)) { @@ -211,14 +211,14 @@ function system_test_modules_uninstalled($modules) { } /** - * Implement hook_boot(). + * Implements hook_boot(). */ function system_test_boot() { watchdog('system_test', 'hook_boot'); } /** - * Implement hook_init(). + * Implements hook_init(). */ function system_test_init() { // Used by FrontPageTestCase to get the results of drupal_is_front_page(). @@ -228,14 +228,14 @@ function system_test_init() { } /** - * Implement hook_exit(). + * Implements hook_exit(). */ function system_test_exit() { watchdog('system_test', 'hook_exit'); } /** - * Implement hook_system_info_alter(). + * Implements hook_system_info_alter(). */ function system_test_system_info_alter(&$info, $file, $type) { // We need a static otherwise the last test will fail to alter common_test. @@ -282,7 +282,7 @@ function system_test_lock_exit() { } /** - * Implement hook_page_build(). + * Implements hook_page_build(). */ function system_test_page_build(&$page) { $menu_item = menu_get_item(); diff --git a/modules/simpletest/tests/taxonomy_test.install b/modules/simpletest/tests/taxonomy_test.install index c4a568da4..420be1b78 100644 --- a/modules/simpletest/tests/taxonomy_test.install +++ b/modules/simpletest/tests/taxonomy_test.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function taxonomy_test_schema() { $schema['taxonomy_term_antonym'] = array( diff --git a/modules/simpletest/tests/taxonomy_test.module b/modules/simpletest/tests/taxonomy_test.module index fd34f9caf..d524fb87c 100644 --- a/modules/simpletest/tests/taxonomy_test.module +++ b/modules/simpletest/tests/taxonomy_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_taxonomy_term_load(). + * Implements hook_taxonomy_term_load(). */ function taxonomy_test_taxonomy_term_load($terms) { foreach ($terms as $term) { @@ -19,7 +19,7 @@ function taxonomy_test_taxonomy_term_load($terms) { } /** - * Implement hook_taxonomy_term_insert(). + * Implements hook_taxonomy_term_insert(). */ function taxonomy_test_taxonomy_term_insert($term) { if (!empty($term->antonym)) { @@ -33,7 +33,7 @@ function taxonomy_test_taxonomy_term_insert($term) { } /** - * Implement hook_taxonomy_term_update(). + * Implements hook_taxonomy_term_update(). */ function taxonomy_test_taxonomy_term_update($term) { if (!empty($term->antonym)) { @@ -47,7 +47,7 @@ function taxonomy_test_taxonomy_term_update($term) { } /** - * Implement hook_taxonomy_term_delete(). + * Implements hook_taxonomy_term_delete(). */ function taxonomy_test_taxonomy_term_delete($term) { db_delete('taxonomy_term_antonym') @@ -56,7 +56,7 @@ function taxonomy_test_taxonomy_term_delete($term) { } /** - * Implement hook_form_alter(). + * Implements 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/url_alter_test.module b/modules/simpletest/tests/url_alter_test.module index a6841ae39..2734d8caa 100644 --- a/modules/simpletest/tests/url_alter_test.module +++ b/modules/simpletest/tests/url_alter_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_url_inbound_alter(). + * Implements hook_url_inbound_alter(). */ function url_alter_test_url_inbound_alter(&$path, $original_path, $path_language) { // Rewrite user/username to user/uid. @@ -25,7 +25,7 @@ function url_alter_test_url_inbound_alter(&$path, $original_path, $path_language } /** - * Implement hook_url_outbound_alter(). + * Implements hook_url_outbound_alter(). */ function url_alter_test_url_outbound_alter(&$path, &$options, $original_path) { // Rewrite user/uid to user/username. diff --git a/modules/simpletest/tests/xmlrpc_test.module b/modules/simpletest/tests/xmlrpc_test.module index d776fdec1..98f3f4f51 100644 --- a/modules/simpletest/tests/xmlrpc_test.module +++ b/modules/simpletest/tests/xmlrpc_test.module @@ -47,7 +47,7 @@ function xmlrpc_test_simpleStructReturnTest($number) { } /** - * Implement hook_xmlrpc() + * Implements hook_xmlrpc(). */ function xmlrpc_test_xmlrpc() { return array( |