public function UiTest::testLoginByIpSettingsValidation in Restrict Login or Role Access by IP Address 8.4
File
- src/
Tests/ UiTest.php, line 166
Class
- UiTest
- Test admin interfaces.
Namespace
Drupal\restrict_by_ip\TestsCode
public function testLoginByIpSettingsValidation() {
$form = [];
$form['restrict_by_ip_login_range'] = 'not_an_ip';
$this
->drupalPostForm('admin/config/people/restrict_by_ip/login', $form, t('Save configuration'));
$this
->assertText('IP address must be in CIDR notation.');
}