diff --git a/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php b/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php index f035f9ebc3b6826d2affd067eeb3fb9011495182..92f500379b03970bdc06a1fcb8819507f2228fb3 100644 --- a/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php +++ b/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php @@ -53,17 +53,6 @@ protected function setUp(): void { ], ]; - // Create a URL-based language negotiation method definition. - $method_definitions = [ - LanguageNegotiationUrl::METHOD_ID => [ - 'class' => '\Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl', - 'weight' => 9, - ], - ]; - - // Create a URL-based language negotiation method. - $method_instance = new LanguageNegotiationUrl($config); - // Create a language manager stub. $language_manager = $this->getMockBuilder('Drupal\language\ConfigurableLanguageManagerInterface') ->getMock(); @@ -77,7 +66,6 @@ protected function setUp(): void { ->method('getLanguageTypes') ->will($this->returnValue([LanguageInterface::TYPE_INTERFACE])); - $method_instance->setLanguageManager($language_manager); $this->languageManager = $language_manager; }