3 require_once( dirname( __FILE__
) . '/SearchEngineTest.php' );
9 class SearchDbTest
extends SearchEngineTest
{
13 // Get a database connection or skip test
14 $this->db
= wfGetDB( DB_MASTER
);
16 $this->markTestIncomplete( "Can't find a database to test with." );
21 // Initialize search database with data
22 $GLOBALS['wgContLang'] = new Language
;
23 $this->insertSearchData();
25 $this->insertSearchData();
26 $searchType = preg_replace( "/Database/", "Search",
27 get_class( $this->db
) );
28 $this->search
= new $searchType( $this->db
);
32 $this->removeSearchData();
33 unset( $this->search
);