public function UiPageTest::testConfigPagesTypesPage in Config Pages 8.2
Tests that the ConfigPages types listing page works.
File
- tests/
src/ Functional/ UiPageTest.php, line 43
Class
- UiPageTest
- Tests that the ConfigPages UI pages are reachable.
Namespace
Drupal\Tests\config_pages\FunctionalCode
public function testConfigPagesTypesPage() {
$account = $this
->drupalCreateUser([
'administer config_pages types',
]);
$this
->drupalLogin($account);
$this
->drupalGet('admin/structure/config_pages/types');
$this
->assertSession()
->statusCodeEquals(200);
// Test that there is an empty reaction rule listing.
$this
->assertSession()
->pageTextContains('There are no config page type entities yet.');
}