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