diff options
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index e48765334..e78c4ce50 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -378,7 +378,11 @@ abstract class DrupalTestCase { public function run() { // HTTP auth settings (<username>:<password>) for the simpletest browser // when sending requests to the test site. - $this->httpauth_credentials = variable_get('simpletest_httpauth_credentials', NULL); + $username = variable_get('simpletest_username', NULL); + $password = variable_get('simpletest_password', NULL); + if ($username && $password) { + $this->httpauth_credentials = $username . ':' . $password; + } set_error_handler(array($this, 'errorHandler')); $methods = array(); |