public function AdminPageTest::testAdminPage in Nodetype access 8
Tests that the /admin page returns a 200.
File
- tests/
src/ Functional/ AdminPageTest.php, line 33
Class
- AdminPageTest
- Simple browser test.
Namespace
Drupal\Tests\nodetype_access\FunctionalCode
public function testAdminPage() {
$this
->drupalLogin($this->rootUser);
$this
->drupalGet('admin');
$this
->assertResponse(200);
// Ensure that the test is not marked as risky because of no assertions.
// see https://gitlab.com/weitzman/drupal-test-traits/-/commit/82bf5059908f9073b3468cb7313960da72176d9a
$this
->addToAssertionCount(1);
}