diff --git a/tests/src/Functional/PageListTest.php b/tests/src/Functional/PageListTest.php index cbe6ccd..6205de1 100644 --- a/tests/src/Functional/PageListTest.php +++ b/tests/src/Functional/PageListTest.php @@ -3,6 +3,7 @@ namespace Drupal\Tests\tdd_blog\Functional; use Drupal\Tests\BrowserTestBase; +use Symfony\Component\HttpFoundation\Response; class PageListTest extends BrowserTestBase { @@ -13,7 +14,7 @@ class PageListTest extends BrowserTestBase { public function testBlogPageExists() { $this->drupalGet('blog'); - $this->assertSession()->statusCodeEquals(200); + $this->assertSession()->statusCodeEquals(Response::HTTP_OK); } }