diff core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
line wrap: on
line diff
--- a/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php	Thu May 09 15:34:47 2019 +0100
@@ -58,21 +58,21 @@
    */
   public function testDefaultConfiguration() {
     $translation = $this->entity;
-    $this->drupalGet($translation->urlInfo());
+    $this->drupalGet($translation->toUrl());
     $last = $this->container->get('state')->get('language_test.language_negotiation_last');
     $last_content_language = $last[LanguageInterface::TYPE_CONTENT];
     $last_interface_language = $last[LanguageInterface::TYPE_INTERFACE];
     $this->assertTrue(($last_interface_language == $last_content_language) && ($last_content_language == $translation->language()->getId()), new FormattableMarkup('Interface language %interface_language and Content language %content_language are the same as the translation language %translation_language of the entity.', ['%interface_language' => $last_interface_language, '%content_language' => $last_content_language, '%translation_language' => $translation->language()->getId()]));
 
     $translation = $this->entity->getTranslation('es');
-    $this->drupalGet($translation->urlInfo());
+    $this->drupalGet($translation->toUrl());
     $last = $this->container->get('state')->get('language_test.language_negotiation_last');
     $last_content_language = $last[LanguageInterface::TYPE_CONTENT];
     $last_interface_language = $last[LanguageInterface::TYPE_INTERFACE];
     $this->assertTrue(($last_interface_language == $last_content_language) && ($last_content_language == $translation->language()->getId()), new FormattableMarkup('Interface language %interface_language and Content language %content_language are the same as the translation language %translation_language of the entity.', ['%interface_language' => $last_interface_language, '%content_language' => $last_content_language, '%translation_language' => $translation->language()->getId()]));
 
     $translation = $this->entity->getTranslation('fr');
-    $this->drupalGet($translation->urlInfo());
+    $this->drupalGet($translation->toUrl());
     $last = $this->container->get('state')->get('language_test.language_negotiation_last');
     $last_content_language = $last[LanguageInterface::TYPE_CONTENT];
     $last_interface_language = $last[LanguageInterface::TYPE_INTERFACE];
@@ -123,7 +123,7 @@
     $this->setCurrentRequestForRoute('/entity_test/{entity_test}', 'entity.entity_test.canonical');
 
     $translation = $this->entity;
-    $this->drupalGet($translation->urlInfo());
+    $this->drupalGet($translation->toUrl());
     $last = $this->container->get('state')->get('language_test.language_negotiation_last');
     $last_content_language = $last[LanguageInterface::TYPE_CONTENT];
     $last_interface_language = $last[LanguageInterface::TYPE_INTERFACE];
@@ -132,7 +132,7 @@
     $this->assertTrue($last_content_language == $translation->language()->getId(), 'Content language matches the current entity translation language.');
 
     $translation = $this->entity->getTranslation('es');
-    $this->drupalGet($translation->urlInfo());
+    $this->drupalGet($translation->toUrl());
     $last = $this->container->get('state')->get('language_test.language_negotiation_last');
     $last_content_language = $last[LanguageInterface::TYPE_CONTENT];
     $last_interface_language = $last[LanguageInterface::TYPE_INTERFACE];
@@ -140,7 +140,7 @@
     $this->assertTrue($last_content_language == $translation->language()->getId(), 'Content language matches the current entity translation language.');
 
     $translation = $this->entity->getTranslation('fr');
-    $this->drupalGet($translation->urlInfo());
+    $this->drupalGet($translation->toUrl());
     $last = $this->container->get('state')->get('language_test.language_negotiation_last');
     $last_content_language = $last[LanguageInterface::TYPE_CONTENT];
     $last_interface_language = $last[LanguageInterface::TYPE_INTERFACE];