Use constant for the response code

This commit is contained in:
Oliver Davies 2020-03-07 17:16:50 +00:00
parent 52f13fcac8
commit dcab1aca9a

View file

@ -3,6 +3,7 @@
namespace Drupal\Tests\tdd_blog\Functional; namespace Drupal\Tests\tdd_blog\Functional;
use Drupal\Tests\BrowserTestBase; use Drupal\Tests\BrowserTestBase;
use Symfony\Component\HttpFoundation\Response;
class PageListTest extends BrowserTestBase { class PageListTest extends BrowserTestBase {
@ -13,7 +14,7 @@ class PageListTest extends BrowserTestBase {
public function testBlogPageExists() { public function testBlogPageExists() {
$this->drupalGet('blog'); $this->drupalGet('blog');
$this->assertSession()->statusCodeEquals(200); $this->assertSession()->statusCodeEquals(Response::HTTP_OK);
} }
} }