diff --git a/core/modules/system/tests/modules/plugin_test/plugin_test.module b/core/modules/system/tests/modules/plugin_test/plugin_test.module index 4acae45144..0bc36c0fc6 100644 --- a/core/modules/system/tests/modules/plugin_test/plugin_test.module +++ b/core/modules/system/tests/modules/plugin_test/plugin_test.module @@ -27,4 +27,4 @@ function plugin_test_plugin_test_alter(&$definitions) { $definition['altered'] = TRUE; } $definitions['user_login']['altered_single'] = TRUE; -} \ No newline at end of file +} diff --git a/core/modules/views/tests/src/Kernel/ViewsHooksTest.php b/core/modules/views/tests/src/Kernel/ViewsHooksTest.php index b61a5d9d2a..0639449a86 100644 --- a/core/modules/views/tests/src/Kernel/ViewsHooksTest.php +++ b/core/modules/views/tests/src/Kernel/ViewsHooksTest.php @@ -79,7 +79,7 @@ public function testHooks() { case 'alter': $data = []; - $this->moduleHandler->invoke('views_test_data', $hook, [$data]); + $this->moduleHandler->alter($hook, $data); break; default: