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