diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-31 11:13:31 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-31 11:13:31 +0000 |
commit | 35c7673caeff18080433191e461ccb7874baadc2 (patch) | |
tree | 39b561248ad6608ebdb4ae212944293dcded5582 /modules/system/system.test | |
parent | a1d1cb5c5691d1555491ea44a07fab4e6681e13f (diff) | |
download | brdo-35c7673caeff18080433191e461ccb7874baadc2.tar.gz brdo-35c7673caeff18080433191e461ccb7874baadc2.tar.bz2 |
- Patch #327480 by chx: remove DB specific code from simpletest.
Diffstat (limited to 'modules/system/system.test')
-rw-r--r-- | modules/system/system.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/system/system.test b/modules/system/system.test index 2aa7c9a7e..d3814aa8a 100644 --- a/modules/system/system.test +++ b/modules/system/system.test @@ -118,12 +118,12 @@ class EnableDisableCoreTestCase extends DrupalWebTestCase { * @return boolean Tables with specified base table. */ function assertTableCount($base_table, $count) { - $match_count = simpletest_get_like_tables($base_table, TRUE); + $tables = db_find_tables(Database::getActiveConnection()->prefixTables($base_table) . '%'); if ($count) { - return $this->assertTrue($match_count, t('Tables matching "@base_table" found.', array('@base_table' => $base_table))); + return $this->assertTrue($tables, t('Tables matching "@base_table" found.', array('@base_table' => $base_table))); } - return $this->assertFalse($match_count, t('Tables matching "@base_table" not found.', array('@base_table' => $base_table))); + return $this->assertFalse($tables, t('Tables matching "@base_table" not found.', array('@base_table' => $base_table))); } /** |