Add page test

This test will fail and return a 404 error code rather than
a 200 code as the page hasn't been built yet.
This commit is contained in:
Oliver Davies 2017-10-23 21:40:10 +01:00
parent 05cd5901d5
commit f16b0df762

View file

@ -11,4 +11,14 @@ class PageListTest extends BrowserTestBase {
*/
protected static $modules = ['tdd_dublin'];
/**
* Test that the pages listing page exists and is accessible.
*/
public function testListingPageExists() {
// Go to /pages and check that it is accessible by checking the status
// code.
$this->drupalGet('pages');
$this->assertSession()->statusCodeEquals(200);
}
}