public function assertModuleTablesExist($module) {
$tables = array_keys(drupal_get_module_schema($module));
$tables_exist = TRUE;
+ $schema = Database::getConnection()->schema();
foreach ($tables as $table) {
- if (!db_table_exists($table)) {
+ if (!$schema->tableExists($table)) {
$tables_exist = FALSE;
}
}
public function assertModuleTablesDoNotExist($module) {
$tables = array_keys(drupal_get_module_schema($module));
$tables_exist = FALSE;
+ $schema = Database::getConnection()->schema();
foreach ($tables as $table) {
- if (db_table_exists($table)) {
+ if ($schema->tableExists($table)) {
$tables_exist = TRUE;
}
}