From 35c7673caeff18080433191e461ccb7874baadc2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 31 Oct 2008 11:13:31 +0000 Subject: - Patch #327480 by chx: remove DB specific code from simpletest. --- modules/system/system.test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/system/system.test') 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))); } /** -- cgit v1.2.3