You are here

public function InstallTestCase::testTheSiteStillWorks in Menu Item Role Access 8.2

Same name and namespace in other branches
  1. 8 tests/src/Functional/InstallTestCase.php \Drupal\Tests\menu_item_role_access\Functional\InstallTestCase::testTheSiteStillWorks()

Make sure the site still works. For now just check the front page.

File

tests/src/Functional/InstallTestCase.php, line 31

Class

InstallTestCase
Test the module installs correctly.

Namespace

Drupal\Tests\menu_item_role_access\Functional

Code

public function testTheSiteStillWorks() {

  // Load the front page.
  $this
    ->drupalGet('<front>');

  // Confirm that the site didn't throw a server error or something else.
  $this
    ->assertSession()
    ->statusCodeEquals(200);
}