From b7f34acb6cd14f90358d92095538631fbd740cee Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 7 Jul 2009 08:07:24 +0000 Subject: - Patch #500292 by Boombatower: provide a settings pagea for hidden SimpleTest variables. --- modules/simpletest/drupal_web_test_case.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/simpletest/drupal_web_test_case.php') 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 (:) 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(); -- cgit v1.2.3