public function UiTest::testGeneralSettings in Restrict Login or Role Access by IP Address 8.4
File
- src/
Tests/ UiTest.php, line 157
Class
- UiTest
- Test admin interfaces.
Namespace
Drupal\restrict_by_ip\TestsCode
public function testGeneralSettings() {
$form = [];
$form['restrict_by_ip_header'] = $this
->randomMachineName(5);
$this
->drupalPostForm('admin/config/people/restrict_by_ip', $form, t('Save configuration'));
$this
->assertText('The configuration options have been saved.');
$this
->assertFieldByName('restrict_by_ip_header', $form['restrict_by_ip_header']);
}