public function Maintenance200Test::testStatusCodeHomePageMaintenance200 in Maintenance 200 8
Site in maintenance mode, maintenance200 set to 200.
Make sure status code is when maintenance mode is on and module status is enabled with 200 code.
File
- tests/
src/ Functional/ Maintenance200Test.php, line 93
Class
- Maintenance200Test
- Test maintenance 200.
Namespace
Drupal\Tests\maintenance200\FunctionalCode
public function testStatusCodeHomePageMaintenance200() {
\Drupal::state()
->set('system.maintenance_mode', TRUE);
$this
->config('maintenance200.settings')
->set('maintenance200_enabled', 1)
->set('maintenance200_status_code', 200)
->save();
$this
->drupalGet('<front>');
$this
->assertResponse(200);
}