diff --git c/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Controller/PluginTest.php w/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Controller/PluginTest.php index b4e1116..090a446 100644 --- c/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Controller/PluginTest.php +++ w/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Controller/PluginTest.php @@ -19,10 +19,10 @@ class PluginTest { * @return array * A renderable array of plugin labels. */ - function testDefinitions() { + public function testDefinitions() { $manager = new CachedMockBlockManager(); $output = array(); - foreach($manager->getDefinitions() as $plugin_id => $definition) { + foreach ($manager->getDefinitions() as $plugin_id => $definition) { $output[$plugin_id] = array( '#markup' => $definition['label'], ); diff --git c/core/modules/system/tests/modules/plugin_test/plugin_test.module w/core/modules/system/tests/modules/plugin_test/plugin_test.module index 8dd0c6f..036cd97 100644 --- c/core/modules/system/tests/modules/plugin_test/plugin_test.module +++ w/core/modules/system/tests/modules/plugin_test/plugin_test.module @@ -21,7 +21,6 @@ function plugin_test_plugin_test_alter(&$definitions) { function plugin_test_menu() { $items = array(); $items['plugin_definition_test'] = array( - 'access callback' => TRUE, 'route_name' => 'plugin_test_definitions', ); return $items;