core/modules/system/tests/src/Functional/Common/UrlTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/system/tests/src/Functional/Common/UrlTest.php b/core/modules/system/tests/src/Functional/Common/UrlTest.php index 163be42..92c9656 100644 --- a/core/modules/system/tests/src/Functional/Common/UrlTest.php +++ b/core/modules/system/tests/src/Functional/Common/UrlTest.php @@ -306,9 +306,9 @@ public function testExternalUrls() { // Verify external URL can be extended with a query string. $url = $test_url; - $query = [$this->randomMachineName(5) => $this->randomMachineName(5)]; + $query = ['awesome' => 'drupal']; $result = Url::fromUri($url, ['query' => $query])->toString(); - $this->assertEqual($url . '?' . http_build_query($query, '', '&'), $result, 'External URL can be extended with a query string in $options.'); + $this->assertSame('https://www.drupal.org/?awesome=drupal', $result); // Verify query string can be extended in an external URL. $url = $test_url . '?drupal=awesome';