public function Maintenance200SettingsTest::testSettingsForm in Maintenance 200 8
Basic check for settings form.
File
- tests/
src/ Functional/ Maintenance200SettingsTest.php, line 58
Class
- Maintenance200SettingsTest
- Test maintenance 200 settings.
Namespace
Drupal\Tests\maintenance200\FunctionalCode
public function testSettingsForm() {
$this
->drupalGet(Url::fromRoute('maintenance200_settings'));
$this
->assertRaw('Change the status code during maintenance mode', 'Checkbox found.');
$this
->assertFieldByName('maintenance200_enabled', TRUE);
}