public function Maintenance200Test::testStatusCodeHomePageNormal in Maintenance 200 8
Site not in maintenance mode.
Make sure status code is 200 when maintenance mode is off.
File
- tests/
src/ Functional/ Maintenance200Test.php, line 62
Class
- Maintenance200Test
- Test maintenance 200.
Namespace
Drupal\Tests\maintenance200\FunctionalCode
public function testStatusCodeHomePageNormal() {
\Drupal::state()
->set('system.maintenance_mode', FALSE);
$this
->drupalGet('<front>');
$this
->assertResponse(200);
}