diff --git a/core/modules/content_translation/tests/modules/route_provider_install_test/route_provider_install_test.info.yml b/core/modules/content_translation/tests/modules/route_provider_install_test/route_provider_install_test.info.yml index 7260473e4d..e2e6ff2e02 100644 --- a/core/modules/content_translation/tests/modules/route_provider_install_test/route_provider_install_test.info.yml +++ b/core/modules/content_translation/tests/modules/route_provider_install_test/route_provider_install_test.info.yml @@ -1,4 +1,6 @@ name: 'Route provider install test' -core: 8.x -type: module description: 'Helps test an insidious bug triggered by the url_generator maintaining a stale route provider.' +type: module +package: Testing +version: VERSION +core: 8.x diff --git a/core/modules/content_translation/tests/modules/route_provider_install_test/src/PluginManager.php b/core/modules/content_translation/tests/modules/route_provider_install_test/src/PluginManager.php index 58ae2393ec..1fe2b5caff 100644 --- a/core/modules/content_translation/tests/modules/route_provider_install_test/src/PluginManager.php +++ b/core/modules/content_translation/tests/modules/route_provider_install_test/src/PluginManager.php @@ -10,8 +10,21 @@ class PluginManager extends DefaultPluginManager { + /** + * PluginManager constructor. + * + * @param \Traversable $namespaces + * An object that implements \Traversable which contains the root paths + * keyed by the corresponding namespace to look for plugin implementations. + * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend + * A cache backend. + * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler + * The module handler. + * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator + * The URL generator. + */ public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, UrlGeneratorInterface $url_generator) { - parent::__construct('Plugin/Shitshow', $namespaces, $module_handler, NULL, PluginID::class); + parent::__construct('Plugin/RouteProviderInstallTest', $namespaces, $module_handler, NULL, PluginID::class); } } diff --git a/core/modules/content_translation/tests/src/Functional/RouteProviderInstallTest.php b/core/modules/content_translation/tests/src/Functional/RouteProviderInstallTest.php index 843fb756c8..e09c405370 100644 --- a/core/modules/content_translation/tests/src/Functional/RouteProviderInstallTest.php +++ b/core/modules/content_translation/tests/src/Functional/RouteProviderInstallTest.php @@ -32,7 +32,7 @@ class RouteProviderInstallTest extends BrowserTestBase { * the old route provider for the lazy-building one, the plugin manager is * still referencing the URL generator, which is still referencing the stale * route provider, rather than the lazy-building one that the module installer - * has swapped in. So ontent_translation_install() fails while trying to + * has swapped in. So content_translation_install() fails while trying to * generate the URL, since it's using a stale, non-lazy building route * provider! */