summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
authorJennifer Hodgdon <yahgrp@poplarware.com>2012-08-03 10:59:07 -0700
committerJennifer Hodgdon <yahgrp@poplarware.com>2012-08-03 10:59:07 -0700
commitf4aa23a2ccddb6a4330cd7a81fea2d70a6da7b96 (patch)
treefc834a1ced08f26f50ffa9605aba89de293eb533 /modules/simpletest
parented2c39e2755ec00a7659710487812f173cd5236a (diff)
downloadbrdo-f4aa23a2ccddb6a4330cd7a81fea2d70a6da7b96.tar.gz
brdo-f4aa23a2ccddb6a4330cd7a81fea2d70a6da7b96.tar.bz2
Issue #1315340 by Albert Volkman, aspilicious: API docs cleanup for entity includes and tests
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/tests/entity_crud_hook_test.module23
-rw-r--r--modules/simpletest/tests/entity_crud_hook_test.test22
2 files changed, 18 insertions, 27 deletions
diff --git a/modules/simpletest/tests/entity_crud_hook_test.module b/modules/simpletest/tests/entity_crud_hook_test.module
index 873a162ce..d25dff1b3 100644
--- a/modules/simpletest/tests/entity_crud_hook_test.module
+++ b/modules/simpletest/tests/entity_crud_hook_test.module
@@ -1,8 +1,9 @@
<?php
-//
-// Presave hooks
-//
+/**
+ * @file
+ * Test module for the Entity CRUD API.
+ */
/**
* Implements hook_entity_presave().
@@ -53,10 +54,6 @@ function entity_crud_hook_test_user_presave() {
$_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called');
}
-//
-// Insert hooks
-//
-
/**
* Implements hook_entity_insert().
*/
@@ -106,10 +103,6 @@ function entity_crud_hook_test_user_insert() {
$_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called');
}
-//
-// Load hooks
-//
-
/**
* Implements hook_entity_load().
*/
@@ -159,10 +152,6 @@ function entity_crud_hook_test_user_load() {
$_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called');
}
-//
-// Update hooks
-//
-
/**
* Implements hook_entity_update().
*/
@@ -212,10 +201,6 @@ function entity_crud_hook_test_user_update() {
$_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called');
}
-//
-// Delete hooks
-//
-
/**
* Implements hook_entity_delete().
*/
diff --git a/modules/simpletest/tests/entity_crud_hook_test.test b/modules/simpletest/tests/entity_crud_hook_test.test
index 3f18fc855..178e34dc7 100644
--- a/modules/simpletest/tests/entity_crud_hook_test.test
+++ b/modules/simpletest/tests/entity_crud_hook_test.test
@@ -1,8 +1,14 @@
<?php
/**
- * Test invocation of hooks when inserting, loading, updating or deleting an
- * entity. Tested hooks are:
+ * @file
+ * CRUD hook tests for the Entity CRUD API.
+ */
+
+/**
+ * Tests invocation of hooks when performing an action.
+ *
+ * Tested hooks are:
* - hook_entity_insert()
* - hook_entity_load()
* - hook_entity_update()
@@ -48,7 +54,7 @@ class EntityCrudHookTestCase extends DrupalWebTestCase {
}
/**
- * Test hook invocations for CRUD operations on comments.
+ * Tests hook invocations for CRUD operations on comments.
*/
public function testCommentHooks() {
$node = (object) array(
@@ -108,7 +114,7 @@ class EntityCrudHookTestCase extends DrupalWebTestCase {
}
/**
- * Test hook invocations for CRUD operations on files.
+ * Tests hook invocations for CRUD operations on files.
*/
public function testFileHooks() {
$url = 'public://entity_crud_hook_test.file';
@@ -154,7 +160,7 @@ class EntityCrudHookTestCase extends DrupalWebTestCase {
}
/**
- * Test hook invocations for CRUD operations on nodes.
+ * Tests hook invocations for CRUD operations on nodes.
*/
public function testNodeHooks() {
$node = (object) array(
@@ -200,7 +206,7 @@ class EntityCrudHookTestCase extends DrupalWebTestCase {
}
/**
- * Test hook invocations for CRUD operations on taxonomy terms.
+ * Tests hook invocations for CRUD operations on taxonomy terms.
*/
public function testTaxonomyTermHooks() {
$vocabulary = (object) array(
@@ -248,7 +254,7 @@ class EntityCrudHookTestCase extends DrupalWebTestCase {
}
/**
- * Test hook invocations for CRUD operations on taxonomy vocabularies.
+ * Tests hook invocations for CRUD operations on taxonomy vocabularies.
*/
public function testTaxonomyVocabularyHooks() {
$vocabulary = (object) array(
@@ -288,7 +294,7 @@ class EntityCrudHookTestCase extends DrupalWebTestCase {
}
/**
- * Test hook invocations for CRUD operations on users.
+ * Tests hook invocations for CRUD operations on users.
*/
public function testUserHooks() {
$edit = array(