1 {% extends "base/class.php.twig" %}
4 \Drupal\Tests\{{ machine_name }}\Functional\LoadTest
7 {% block namespace_class %}
8 namespace Drupal\Tests\{{ machine_name }}\Functional;
13 use Drupal\Tests\BrowserTestBase;
16 {% block class_declaration %}
18 * Simple test to ensure that main page loads with module enabled.
20 * @group {{ machine_name }}
22 class LoadTest extends BrowserTestBase {% endblock %}
23 {% block class_methods %}
29 public static $modules = ['{{ machine_name }}'];
32 * A user with permission to administer site configuration.
34 * @var \Drupal\user\UserInterface
41 protected function setUp() {
43 $this->user = $this->drupalCreateUser(['administer site configuration']);
44 $this->drupalLogin($this->user);
48 * Tests that the home page loads with a 200 response.
50 public function testLoad() {
51 $this->drupalGet(Url::fromRoute('<front>'));
52 $this->assertResponse(200);