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:
parent
05cd5901d5
commit
f16b0df762
1 changed files with 10 additions and 0 deletions
|
@ -11,4 +11,14 @@ class PageListTest extends BrowserTestBase {
|
||||||
*/
|
*/
|
||||||
protected static $modules = ['tdd_dublin'];
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue