diff --git a/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php b/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php index c5e5dcb053f38620260c7bec25376530eed675bf..799c6108160779398f3f9aa83c128047a3f370b1 100644 --- a/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php +++ b/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php @@ -297,8 +297,8 @@ public function testImplementsHookModuleEnabled() { $this->moduleHandler->addModule('module_handler_test_added', 'core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added'); $this->assertTrue($this->moduleHandler->implementsHook('module_handler_test_added', 'hook'), 'Runtime added module with implementation in include found.'); - $this->moduleHandler->addModule('system', 'core/modules/system'); - $this->assertFalse($this->moduleHandler->implementsHook('system', 'hook', array(TRUE)), 'Missing implementation not found.'); + $this->moduleHandler->addModule('module_handler_test_no_hook', 'core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added'); + $this->assertFalse($this->moduleHandler->implementsHook('module_handler_test_no_hook', 'hook', array(TRUE)), 'Missing implementation not found.'); } /** diff --git a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_no_hook/module_handler_test_no_hook.info.yml b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_no_hook/module_handler_test_no_hook.info.yml new file mode 100644 index 0000000000000000000000000000000000000000..589c3aca373523e578680f0f43f24be5dc34d387 --- /dev/null +++ b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_no_hook/module_handler_test_no_hook.info.yml @@ -0,0 +1,6 @@ +name: module handler test no hook +type: module +description: 'Test module used to test modules that do not implement a hook.' +package: Testing +version: VERSION +core: 8.x