Moved tests to maintenance - one directory less to care about when configuring access.
[lhc/web/wiklou.git] / maintenance / tests / SearchMySQL4Test.php
1 <?php
2 require_once( 'SearchEngineTest.php' );
3
4 class SearchMySQL4Test extends SearchEngineTest {
5 var $db;
6
7 function setUp() {
8 $GLOBALS['wgContLang'] = new Language;
9 $this->db = $this->buildTestDatabase(
10 array( 'page', 'revision', 'text', 'searchindex' ) );
11 if( $this->db ) {
12 $this->insertSearchData();
13 }
14 $this->search = new SearchMySQL4( $this->db );
15 }
16
17 function tearDown() {
18 if( !is_null( $this->db ) ) {
19 $this->db->close();
20 }
21 unset( $this->db );
22 unset( $this->search );
23 }
24
25 }
26
27