Commit c84ec0fa authored by Dries's avatar Dries
Browse files

- Patch #909460 by tobiasb: remove debug() from test files.

parent 64fc9813
......@@ -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']);
}
}
......
......@@ -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');
......
......@@ -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(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment