Use constant for the response code
This commit is contained in:
parent
52f13fcac8
commit
dcab1aca9a
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue