You are here

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

File

./restrict_by_ip.test, line 418

Class

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

Code

public function testGeneralSettings() {
  $form = array();
  $form['restrict_by_ip_header'] = $this
    ->randomName(5);
  $this
    ->drupalPost('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']);
}