You are here

public function RestrictByIpUITests::testLoginByIpSettingsValidation in Restrict Login or Role Access by IP Address 7.3

File

./restrict_by_ip.test, line 427

Class

RestrictByIpUITests
Test admin interfaces. Assumes that local testing environment has IP address of 127.0.0.1.

Code

public function testLoginByIpSettingsValidation() {
  $form = array();
  $form['restrict_by_ip_login_range'] = 'not_an_ip';
  $this
    ->drupalPost('admin/config/people/restrict_by_ip/login', $form, t('Save configuration'));
  $this
    ->assertText('IP Address in Incorrect Format.');
}