summaryrefslogtreecommitdiff
path: root/modules/simpletest/simpletest.pages.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/simpletest.pages.inc')
-rw-r--r--modules/simpletest/simpletest.pages.inc25
1 files changed, 20 insertions, 5 deletions
diff --git a/modules/simpletest/simpletest.pages.inc b/modules/simpletest/simpletest.pages.inc
index bd3f471d3..846a44f41 100644
--- a/modules/simpletest/simpletest.pages.inc
+++ b/modules/simpletest/simpletest.pages.inc
@@ -442,18 +442,33 @@ function simpletest_settings_form($form, &$form_state) {
$form['httpauth'] = array(
'#type' => 'fieldset',
- '#title' => t('HTTP authentication credentials'),
+ '#title' => t('HTTP authentication'),
'#description' => t('HTTP auth settings to be used by the SimpleTest browser during testing. Useful when the site requires basic HTTP authentication.'),
+ '#collapsible' => TRUE,
+ '#collapsed' => TRUE,
);
- $form['httpauth']['simpletest_username'] = array(
+ $form['httpauth']['simpletest_httpauth_method'] = array(
+ '#type' => 'select',
+ '#title' => t('Method'),
+ '#options' => array(
+ CURLAUTH_BASIC => t('Basic'),
+ CURLAUTH_DIGEST => t('Digest'),
+ CURLAUTH_GSSNEGOTIATE => t('GSS negotiate'),
+ CURLAUTH_NTLM => t('NTLM'),
+ CURLAUTH_ANY => t('Any'),
+ CURLAUTH_ANYSAFE => t('Any safe'),
+ ),
+ '#default_value' => variable_get('simpletest_httpauth_method', CURLAUTH_BASIC),
+ );
+ $form['httpauth']['simpletest_httpauth_username'] = array(
'#type' => 'textfield',
'#title' => t('Username'),
- '#default_value' => variable_get('simpletest_username', ''),
+ '#default_value' => variable_get('simpletest_httpauth_username', ''),
);
- $form['httpauth']['simpletest_password'] = array(
+ $form['httpauth']['simpletest_httpauth_password'] = array(
'#type' => 'textfield',
'#title' => t('Password'),
- '#default_value' => variable_get('simpletest_password', ''),
+ '#default_value' => variable_get('simpletest_httpauth_password', ''),
);
return system_settings_form($form);