diff --git a/core/modules/contact/src/Tests/ContactSitewideTest.php b/core/modules/contact/src/Tests/ContactSitewideTest.php index e93e4d1..239e467 100644 --- a/core/modules/contact/src/Tests/ContactSitewideTest.php +++ b/core/modules/contact/src/Tests/ContactSitewideTest.php @@ -295,9 +295,7 @@ function testSiteWideContact() { ); $this->drupalPostForm(NULL, $edit, t('Send message')); $this->assertText('Thanks for your submission'); - $this->assertUrl(Url::fromRoute('entity.user.canonical', [ - 'user' => $admin_user->id(), - ])->toString()); + $this->assertUrl('user/' . $admin_user->id()); } /**