You are here

public function AdminPageTest::testAdminPage in DateTime hide Seconds 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\datetimehideseconds\Functional

Code

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);
}