user = $this->drupalCreateUser(['administer site configuration']); $this->drupalLogin($this->user); } /** * Tests that the home page loads with a 200 response. */ public function testLoad() { $this->drupalGet(Url::fromRoute('')); $this->assertSession()->statusCodeEquals(200); } }