From c84ec0fa0ec0e090b4883d7c51fdd60131d4a98b Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sun, 19 Sep 2010 18:45:51 +0000
Subject: [PATCH] - Patch #909460 by tobiasb: remove debug() from test files.

---
 modules/simpletest/tests/database_test.test           | 11 +++++------
 modules/simpletest/tests/file.test                    |  1 -
 .../simpletest/tests/upgrade/upgrade.taxonomy.test    |  3 +--
 3 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/modules/simpletest/tests/database_test.test b/modules/simpletest/tests/database_test.test
index 10afff465a19..e3de06a57cf5 100644
--- a/modules/simpletest/tests/database_test.test
+++ b/modules/simpletest/tests/database_test.test
@@ -2091,7 +2091,6 @@ class DatabaseSelectComplexTestCase2 extends DatabaseTestCase {
     $str = (string) $query;
 
     // Verify that the string only has one copy of condition placeholder 0.
-    debug($str);
     $pos = strpos($str, 'db_condition_placeholder_0', 0);
     $pos2 = strpos($str, 'db_condition_placeholder_0', $pos + 1);
     $this->assertFalse($pos2, "Condition placeholder is not repeated");
@@ -2216,13 +2215,13 @@ class DatabaseSelectPagerDefaultTestCase extends DatabaseTestCase {
       ->fetchCol();
     $this->assertEqual($ages, array('George', 'Ringo'), t('Pager query with having expression returned the correct ages.'));
   }
-  
+
   /**
   * Confirm that every pager gets a valid non-overlaping element ID.
   */
   function testElementNumbers() {
     $_GET['page'] = '3, 2, 1, 0';
-    
+
     $name = db_select('test', 't')->extend('PagerDefault')
       ->element(2)
       ->fields('t', array('name'))
@@ -2231,7 +2230,7 @@ class DatabaseSelectPagerDefaultTestCase extends DatabaseTestCase {
       ->execute()
       ->fetchField();
     $this->assertEqual($name, 'Paul', t('Pager query #1 with a specified element ID returned the correct results.'));
-    
+
     // Setting an element smaller than the previous one
     // should not overwrite the pager $maxElement with a smaller value.
     $name = db_select('test', 't')->extend('PagerDefault')
@@ -2242,7 +2241,7 @@ class DatabaseSelectPagerDefaultTestCase extends DatabaseTestCase {
       ->execute()
       ->fetchField();
     $this->assertEqual($name, 'George', t('Pager query #2 with a specified element ID returned the correct results.'));
-  
+
     $name = db_select('test', 't')->extend('PagerDefault')
       ->fields('t', array('name'))
       ->orderBy('age')
@@ -2250,7 +2249,7 @@ class DatabaseSelectPagerDefaultTestCase extends DatabaseTestCase {
       ->execute()
       ->fetchField();
     $this->assertEqual($name, 'John', t('Pager query #3 with a generated element ID returned the correct results.'));
-    
+
     unset($_GET['page']);
   }
 }
diff --git a/modules/simpletest/tests/file.test b/modules/simpletest/tests/file.test
index f8c72ac63a48..afb540eb6d29 100644
--- a/modules/simpletest/tests/file.test
+++ b/modules/simpletest/tests/file.test
@@ -899,7 +899,6 @@ class FileDirectoryTest extends FileTestCase {
       // in the directory on any recent version of Windows.
 
       // Make directory read only.
-      debug($directory);
       @drupal_chmod($directory, 0444);
       $this->assertFalse(file_prepare_directory($directory, 0), t('Error reported for a non-writeable directory.'), 'File');
 
diff --git a/modules/simpletest/tests/upgrade/upgrade.taxonomy.test b/modules/simpletest/tests/upgrade/upgrade.taxonomy.test
index 70e006269230..e3e3c3d63a6a 100644
--- a/modules/simpletest/tests/upgrade/upgrade.taxonomy.test
+++ b/modules/simpletest/tests/upgrade/upgrade.taxonomy.test
@@ -70,7 +70,7 @@ class UpgradePathTaxonomyTestCase extends UpgradePathTestCase {
     // Node type 'story' was not explicitly in $vocabulary->nodes but
     // each node of type 'story' was associated to one or more terms.
     // Check that the node type 'story' has been associated only to
-    // the taxonomyextra field. 
+    // the taxonomyextra field.
     $instances = $this->instanceVocabularies('node', 'story');
     $field_names = array_flip($instances);
     $this->assertEqual(count($field_names), 1, t('Only one taxonomy term field instance exists for story nodes'));
@@ -95,7 +95,6 @@ class UpgradePathTaxonomyTestCase extends UpgradePathTestCase {
       $node->content = field_attach_view('node', $node, 'full');
       $render = drupal_render($node->content);
       $this->drupalSetContent($render);
-      debug("Testing node $nid");
       $this->verbose($render);
       foreach ($terms as $tid => $term) {
         $args = array(
-- 
GitLab