diff core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
line wrap: on
line diff
--- a/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php	Thu May 09 15:34:47 2019 +0100
@@ -304,7 +304,7 @@
     ];
     $this->drupalPostForm('admin/config/regional/translate', $edit, t('Save translations'));
     $this->assertText(t('The strings have been saved.'), 'The strings have been saved.');
-    $this->assertUrl(\Drupal::url('locale.translate_page', [], ['absolute' => TRUE]), [], 'Correct page redirection.');
+    $this->assertUrl(Url::fromRoute('locale.translate_page', [], ['absolute' => TRUE])->toString(), [], 'Correct page redirection.');
     $this->drupalLogout();
 
     // Log in the adminUser. Check the admin menu subtrees hash now that one