summaryrefslogtreecommitdiff
path: root/modules/simpletest/drupal_web_test_case.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-07 08:07:24 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-07 08:07:24 +0000
commitb7f34acb6cd14f90358d92095538631fbd740cee (patch)
tree46abac385ce813e3d6ab7d62f95fe560857b1cba /modules/simpletest/drupal_web_test_case.php
parent129a20f1555d3d8afe6d2dbfb37faace087dbbec (diff)
downloadbrdo-b7f34acb6cd14f90358d92095538631fbd740cee.tar.gz
brdo-b7f34acb6cd14f90358d92095538631fbd740cee.tar.bz2
- Patch #500292 by Boombatower: provide a settings pagea for hidden SimpleTest variables.
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r--modules/simpletest/drupal_web_test_case.php6
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();