diff --git a/core/modules/comment/tests/src/Functional/CommentBlockContentTest.php b/core/modules/comment/tests/src/Functional/CommentBlockContentTest.php index d9efb6dbe5..f178ac30f0 100644 --- a/core/modules/comment/tests/src/Functional/CommentBlockContentTest.php +++ b/core/modules/comment/tests/src/Functional/CommentBlockContentTest.php @@ -1,6 +1,6 @@ drupalPostForm(NULL, $edit, t('Save')); - $this->assertResponse(200); - $this->assertUrl(Url::fromRoute('user.login')); + $this->assertSession()->statusCodeEquals(200); + $this->assertSession()->addressEquals(Url::fromRoute('user.login')); } }