2017-10-21 17:35:54 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Drupal\Tests\tdd_dublin\Functional;
|
|
|
|
|
|
|
|
use Drupal\Tests\BrowserTestBase;
|
|
|
|
|
|
|
|
class PageListTest extends BrowserTestBase {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
protected static $modules = ['tdd_dublin'];
|
|
|
|
|
2017-10-23 21:40:10 +01:00
|
|
|
/**
|
|
|
|
* 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);
|
|
|
|
}
|
|
|
|
|
2017-10-21 17:35:54 +01:00
|
|
|
}
|