diff --git a/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php b/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php index fd99e99..2d733c3 100644 --- a/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php +++ b/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php @@ -2,6 +2,7 @@ namespace Drupal\Tests\Core\Routing; +use Drupal\Component\Utility\UrlHelper; use Drupal\Core\Routing\RedirectDestination; use Drupal\Tests\UnitTestCase; use Symfony\Component\HttpFoundation\Request; @@ -51,7 +52,7 @@ protected function setupUrlGenerator() { ->willReturnCallback(function($route, $parameters, $options) { $query_string = ''; if (!empty($options['query'])) { - $query_string = '?' . $options['query']; + $query_string = '?' . UrlHelper::buildQuery($options['query']); } return '/current-path' . $query_string;