summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-08-02 18:55:17 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-08-02 18:55:17 +0000
commit9ad0a7ea9b9fefecef1d33ee26d654201f9627d1 (patch)
treebe393990e3c2179b9aacf7a436ee6a1d201f3804 /modules/system
parent36da783d5310d680d137ccaeb116691e35be424a (diff)
downloadbrdo-9ad0a7ea9b9fefecef1d33ee26d654201f9627d1.tar.gz
brdo-9ad0a7ea9b9fefecef1d33ee26d654201f9627d1.tar.bz2
#851168 by Stevel, Damien Tournoud: Fixed db_find_tables() expects tables to be prefixed, inconsistent implementation and documentation.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.test b/modules/system/system.test
index 977074bb6..1d665bf94 100644
--- a/modules/system/system.test
+++ b/modules/system/system.test
@@ -24,7 +24,7 @@ class ModuleTestCase extends DrupalWebTestCase {
* specified base table. Defaults to TRUE.
*/
function assertTableCount($base_table, $count = TRUE) {
- $tables = db_find_tables($base_table . '%');
+ $tables = db_find_tables(Database::getConnection()->prefixTables('{' . $base_table . '}') . '%');
if ($count) {
return $this->assertTrue($tables, t('Tables matching "@base_table" found.', array('@base_table' => $base_table)));