You are here

public function LoadTest::testLoad in Admin Menu Swap 7.2

Same name and namespace in other branches
  1. 8 src/Tests/LoadTest.php \Drupal\amswap\Tests\LoadTest::testLoad()

Tests that the home page loads with a 200 response.

File

src/Tests/LoadTest.php, line 41

Class

LoadTest
Simple test to ensure that main page loads with module enabled.

Namespace

Drupal\amswap\Tests

Code

public function testLoad() {
  $this
    ->drupalGet(Url::fromRoute('<front>'));
  $this
    ->assertResponse(200);
}