Unverified Commit 20f191f3 authored by alexpott's avatar alexpott
Browse files

Issue #3156345 by jungle, S_Bhandari, Hardik_Patel_12, kiamlaluno, alexpott:...

Issue #3156345 by jungle, S_Bhandari, Hardik_Patel_12, kiamlaluno, alexpott: Remove Unused variable $method_definitions from PathProcessorTest.php file

(cherry picked from commit 72cb9b6f)
parent 7b198e49
...@@ -53,17 +53,6 @@ protected function setUp() { ...@@ -53,17 +53,6 @@ protected function setUp() {
], ],
]; ];
// 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. // Create a language manager stub.
$language_manager = $this->getMockBuilder('Drupal\language\ConfigurableLanguageManagerInterface') $language_manager = $this->getMockBuilder('Drupal\language\ConfigurableLanguageManagerInterface')
->getMock(); ->getMock();
...@@ -77,7 +66,6 @@ protected function setUp() { ...@@ -77,7 +66,6 @@ protected function setUp() {
->method('getLanguageTypes') ->method('getLanguageTypes')
->will($this->returnValue([LanguageInterface::TYPE_INTERFACE])); ->will($this->returnValue([LanguageInterface::TYPE_INTERFACE]));
$method_instance->setLanguageManager($language_manager);
$this->languageManager = $language_manager; $this->languageManager = $language_manager;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment