Commit c902ba68 authored by catch's avatar catch

Issue #2392281 by alexpott: system.module is included in our PHPUnit tests

parent 5f135192
......@@ -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.');
}
/**
......
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment