? .bzr
? node_format.patch
? simpletest
? simplify.patch
? tests/enable_modules.test
? tests/homepage.test
? tests/menu_enable.patch
? tests/menu_tests.patch
Index: drupal_test_case.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/drupal_test_case.php,v
retrieving revision 1.74
diff -u -p -r1.74 drupal_test_case.php
--- drupal_test_case.php	29 Mar 2008 23:53:49 -0000	1.74
+++ drupal_test_case.php	30 Mar 2008 06:16:07 -0000
@@ -365,8 +365,8 @@ class DrupalTestCase extends UnitTestCas
   }
 
   function setUp() {
-    global $db_prefix, $simpletest_ua_handling;
-    if ($simpletest_ua_handling) {
+    global $db_prefix, $simpletest_ua_key;
+    if ($simpletest_ua_key) {
       $this->db_prefix_original = $db_prefix;
       $clean_url_original = variable_get('clean_url', 0);
       $db_prefix = 'simpletest'. mt_rand(1000, 1000000);
Index: simpletest.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/simpletest.module,v
retrieving revision 1.39
diff -u -p -r1.39 simpletest.module
--- simpletest.module	24 Mar 2008 20:12:00 -0000	1.39
+++ simpletest.module	30 Mar 2008 06:16:07 -0000
@@ -83,18 +83,17 @@ function simpletest_load() {
  * Menu callback for both running tests and listing possible tests
  */
 function simpletest_entrypoint() {
-  global $simpletest_ua_handling;
+  global $simpletest_ua_key;
   if (!simpletest_load()) {
      // @TODO - Find a better way for this return.  It is currently needed to show error,
      // and returning true leads to page not found
     return '&nbsp;';
   }
-  if (!$simpletest_ua_handling) {
+  if (!$simpletest_ua_key) {
     $output = t('Please add the following code to the bottom of settings.php');
     $output .=
-'<p><code><pre>$GLOBALS["simpletest_ua_handling"] = TRUE;
-$GLOBALS["simpletest_ua_key"] = '. mt_rand(1000, 1000000) .';
-if (preg_match("/(simpletest\d+),(\d+)/", $_SERVER["HTTP_USER_AGENT"], $matches) && $GLOBALS["simpletest_ua_key"] == $matches[2]) {
+'<p><code><pre>$GLOBALS["simpletest_ua_key"] = '. mt_rand(1000, 1000000) .';
+if (preg_match("/^(simpletest\d+),(\d+)/", $_SERVER["HTTP_USER_AGENT"], $matches) && $GLOBALS["simpletest_ua_key"] == $matches[2]) {
   $db_prefix = $matches[1];
 }</pre></code></p>';
     return $output;
