2 class SearchDbTest
extends SearchEngineTest
{
6 global $wgDBprefix, $wgDBtype;
7 $this->db
= wfGetDB( DB_MASTER
);
9 $this->markTestIncomplete( "Can't find a database to test with." );
12 $GLOBALS['wgContLang'] = new Language
;
13 $this->insertSearchData();
15 $this->insertSearchData();
16 $searchType = preg_replace( "/Database/", "Search",
17 get_class( $this->db
) );
18 $this->search
= new $searchType( $this->db
);
22 $this->removeSearchData();
23 if ( !is_null( $this->db
) ) {
24 wfGetLB()->closeConnecton( $this->db
);
27 unset( $this->search
);