public function LoadTest::testLoad in RegEx Field Validation 2.0.x
Same name and namespace in other branches
- 8 tests/src/Functional/LoadTest.php \Drupal\Tests\regex_field_validation\Functional\LoadTest::testLoad()
- 1.0.x tests/src/Functional/LoadTest.php \Drupal\Tests\regex_field_validation\Functional\LoadTest::testLoad()
Tests that the home page loads with a 200 response.
File
- tests/
src/ Functional/ LoadTest.php, line 41
Class
- LoadTest
- Simple test to ensure that main page loads with module enabled.
Namespace
Drupal\Tests\regex_field_validation\FunctionalCode
public function testLoad() {
$this
->drupalGet(Url::fromRoute('<front>'));
$this
->assertSession()
->statusCodeEquals(200);
}