diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index 5a7158c..cc6c732 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -1484,7 +1484,6 @@ class DrupalWebTestCase extends DrupalTestCase { $cache_key = $this->getCacheKey($cache_key_suffix); try { - $this->alterToMyISAM(); $this->copyCache(substr($this->databasePrefix, 10), $cache_key); } catch (Exception $e) { @@ -1557,32 +1556,6 @@ class DrupalWebTestCase extends DrupalTestCase { } /** - * Alter certain tables to MyISAM engine to speed up tests. - * - * MyISAM is faster to delete and copy tables. It gives a small advantage - * when /var/lib/docroot/mysql is on SHM (memory) device, but much bigger when tests - * are run on a block device. - */ - protected function alterToMyISAM() { - $skip_alter = array( - 'taxonomy_term_data', - 'node', - 'node_access', - 'node_revision', - 'node_comment_statistics', - ); - $tables = db_find_tables($this->databasePrefix . '%'); - foreach ($tables as $table) { - $original_table_name = substr($table, strlen($this->databasePrefix)); - if(!in_array($original_table_name, $skip_alter)){ - db_query('ALTER TABLE ' . $table . ' ENGINE=MyISAM'); - } - } - } - - - - /** * Sets up a Drupal site for running functional and integration tests. * * Generates a random database prefix and installs Drupal with the specified