From 72cb9b6f0636c07e00d800af1485a06581d46366 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Fri, 24 Jul 2020 14:48:47 +0100
Subject: [PATCH] Issue #3156345 by jungle, S_Bhandari, Hardik_Patel_12,
 kiamlaluno, alexpott: Remove Unused variable $method_definitions from
 PathProcessorTest.php file

---
 .../Tests/Core/PathProcessor/PathProcessorTest.php   | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php b/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php
index f035f9ebc3b6..92f500379b03 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;
   }
 
-- 
GitLab