You are here

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

Same name and namespace in other branches
  1. 8.2 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 26

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