diff --git a/core/modules/block/lib/Drupal/block/Tests/BlockHookOperationTest.php b/core/modules/block/lib/Drupal/block/Tests/BlockHookOperationTest.php index eba4d2d..395e620 100644 --- a/core/modules/block/lib/Drupal/block/Tests/BlockHookOperationTest.php +++ b/core/modules/block/lib/Drupal/block/Tests/BlockHookOperationTest.php @@ -20,7 +20,7 @@ class BlockHookOperationTest extends WebTestBase { * * @var array */ - public static $modules = array('block'); + public static $modules = array('block', 'block_test_hook_operation'); public static function getInfo() { return array( @@ -47,7 +47,7 @@ public function setUp() { */ public function testTranslateOperationInBlockListUI() { // Add a test block, any block will do. - // Set the machine name so later the translate link can be build. + // Set the machine name so later the translate link can be built. $block_machine_name = Unicode::strtolower($this->randomName(16)); $this->drupalPlaceBlock('system_powered_by_block', array('machine_name' => $block_machine_name)); diff --git a/core/modules/block/tests/block_test_hook_operation/block_test_hook_operation.module b/core/modules/block/tests/block_test_hook_operation/block_test_hook_operation.module index a8e220d..0c570b4 100644 --- a/core/modules/block/tests/block_test_hook_operation/block_test_hook_operation.module +++ b/core/modules/block/tests/block_test_hook_operation/block_test_hook_operation.module @@ -8,7 +8,7 @@ /** * Implements hook_entity_operation_alter(). */ -function config_translation_entity_operation_alter(array &$operations, \Drupal\Core\Entity\EntityInterface $entity) { +function block_test_hook_operation_entity_operation_alter(array &$operations, \Drupal\Core\Entity\EntityInterface $entity) { $uri = $entity->uri(); $operations['translate'] = array( 'title' => t('Translate'),