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