More updates to stop using dev or alpha or beta versions.
[yaffs-website] / web / core / tests / Drupal / Tests / Core / PathProcessor / PathProcessorTest.php
index 57dfbfa1603dda7c91fc096a055971d64f41c02d..e6215caac834e310a794ea5bc605447c60244aaf 100644 (file)
@@ -76,12 +76,6 @@ class PathProcessorTest extends UnitTestCase {
     $language_manager->expects($this->any())
       ->method('getLanguageTypes')
       ->will($this->returnValue([LanguageInterface::TYPE_INTERFACE]));
-    $language_manager->expects($this->any())
-      ->method('getNegotiationMethods')
-      ->will($this->returnValue($method_definitions));
-    $language_manager->expects($this->any())
-      ->method('getNegotiationMethodInstance')
-      ->will($this->returnValue($method_instance));
 
     $method_instance->setLanguageManager($language_manager);
     $this->languageManager = $language_manager;
@@ -131,10 +125,12 @@ class PathProcessorTest extends UnitTestCase {
       ->getMock();
     $negotiator->expects($this->any())
       ->method('getNegotiationMethods')
-      ->will($this->returnValue([LanguageNegotiationUrl::METHOD_ID => [
-        'class' => 'Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl',
-        'weight' => 9,
-        ]]));
+      ->will($this->returnValue([
+        LanguageNegotiationUrl::METHOD_ID => [
+          'class' => 'Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl',
+          'weight' => 9,
+        ],
+      ]));
     $method = new LanguageNegotiationUrl();
     $method->setConfig($config_factory_stub);
     $method->setLanguageManager($this->languageManager);