2 require_once( 'SearchEngineTest.php' );
4 class SearchDbTest
extends SearchEngineTest
{
8 global $wgDBprefix, $wgDBtype;
9 $this->db
= wfGetDB( DB_MASTER
);
11 $this->markTestIncomplete( "Can't find a database to test with." );
14 $GLOBALS['wgContLang'] = new Language
;
15 $this->insertSearchData();
17 $this->insertSearchData();
18 $searchType = preg_replace("/Database/", "Search",
19 get_class($this->db
));
20 $this->search
= new $searchType( $this->db
);
24 $this->removeSearchData();
25 if( !is_null( $this->db
) ) {
26 wfGetLB()->closeConnecton( $this->db
);
29 unset( $this->search
);