DatabaseSelectTestCase.testSimpleComment tries to assert that the result of a dynamic query is exactly a litteral chain.

$expected = "/* Testing query comments */ SELECT test.name AS name, test.age AS age\nFROM \n{test} test";
$this->assertEqual($query, $expected, t('The flattened query contains the comment string.'));

Each database driver can override the Select query builder, so we should not test something literally like this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Damien Tournoud’s picture

Status: Active » Needs review
FileSize
1.02 KB

Simple patch.