diff --git a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityOperationsTest.php b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityOperationsTest.php index a9c5319..2d142ca 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityOperationsTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityOperationsTest.php @@ -2,7 +2,7 @@ /** * @file - * Definition of Drupal\system\Tests\Entity\EntityOperationsTest. + * Contains \Drupal\system\Tests\Entity\EntityOperationsTest. */ namespace Drupal\system\Tests\Entity; @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Tests for entity operations. + * Tests for entity operations, that they can be altered. */ class EntityOperationsTest extends WebTestBase { @@ -40,7 +40,9 @@ public function setUp() { } /** - * Check hook_entity_operation_alter hook is executed. + * Checks that hook_entity_operation_alter() can add an operation. + * + * @see entity_test_entity_operation_alter() */ public function testEntityOperationAlter() { // Check that role listing contain our test_operation operation. @@ -52,4 +54,5 @@ public function testEntityOperationAlter() { $this->assertLink('Test Operation: ' . $role->label()); } } + } diff --git a/core/modules/system/tests/modules/entity_test/entity_test.module b/core/modules/system/tests/modules/entity_test/entity_test.module index 4a39f90..d0e8d54 100644 --- a/core/modules/system/tests/modules/entity_test/entity_test.module +++ b/core/modules/system/tests/modules/entity_test/entity_test.module @@ -381,7 +381,7 @@ function entity_test_entity_form_display_alter(EntityFormDisplay $form_display, } /** - * Implements hook_entity_presave(). + * Implements hook_entity_presave() */ function entity_test_entity_presave(EntityInterface $entity) { if (isset($GLOBALS['entity_test_throw_exception'])) { @@ -390,7 +390,7 @@ function entity_test_entity_presave(EntityInterface $entity) { } /** - * Implements hook_entity_predelete(). + * Implements hook_entity_predelete() */ function entity_test_entity_predelete(EntityInterface $entity) { if (isset($GLOBALS['entity_test_throw_exception'])) { @@ -408,4 +408,4 @@ function entity_test_entity_operation_alter(array &$operations, EntityInterface 'href' => $uri['path'] . '/test_operation', 'weight' => 50, ); -} \ No newline at end of file +}