Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1054758-test-literal-query.patch | 1.02 KB | Damien Tournoud |
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedSimple patch.