From: Max Semenik Date: Sat, 5 Mar 2011 16:09:10 +0000 (+0000) Subject: Don't dupe/drop parts of searchindex on SQLite X-Git-Tag: 1.31.0-rc.0~31633 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=b11cd099bbf0b2085d139ecf56b5f64097f1e7a2;p=lhc%2Fweb%2Fwiklou.git Don't dupe/drop parts of searchindex on SQLite --- diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index 4119482783..08f9323831 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -200,6 +200,15 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { $tables = $this->db->listTables( $wgDBprefix, __METHOD__ ); $tables = array_map( array( __CLASS__, 'unprefixTable' ), $tables ); + + if ( $this->db->getType() == 'sqlite' ) { + $tables = array_flip( $tables ); + // these are subtables of searchindex and don't need to be duped/dropped separately + unset( $tables['searchindex_content'] ); + unset( $tables['searchindex_segdir'] ); + unset( $tables['searchindex_segments'] ); + $tables = array_flip( $tables ); + } return $tables; }