Mercurial > hg > cmmr2012-drupal-site
diff core/modules/search/tests/src/Functional/SearchBlockTest.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/search/tests/src/Functional/SearchBlockTest.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/search/tests/src/Functional/SearchBlockTest.php Thu May 09 15:34:47 2019 +0100 @@ -2,6 +2,7 @@ namespace Drupal\Tests\search\Functional; +use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; /** @@ -72,7 +73,7 @@ $entity_id = $search_page_repository->getDefaultSearchPage(); $this->assertEqual( $this->getUrl(), - \Drupal::url('search.view_' . $entity_id, [], ['query' => ['keys' => $terms['keys']], 'absolute' => TRUE]), + Url::fromRoute('search.view_' . $entity_id, [], ['query' => ['keys' => $terms['keys']], 'absolute' => TRUE])->toString(), 'Submitted to correct URL.' ); @@ -86,7 +87,7 @@ // submitted empty. $this->assertEqual( $this->getUrl(), - \Drupal::url('search.view_' . $entity_id, [], ['query' => ['keys' => ''], 'absolute' => TRUE]), + Url::fromRoute('search.view_' . $entity_id, [], ['query' => ['keys' => ''], 'absolute' => TRUE])->toString(), 'Redirected to correct URL.' );