* (bug 27353) IPv6 address ending in "::WORD" was not recognized
[lhc/web/wiklou.git] / tests / phpunit / includes / search / SearchDbTest.php
1 <?php
2
3 require_once( dirname( __FILE__ ) . '/SearchEngineTest.php' );
4
5 /**
6 * @group Search
7 * @group Destructive
8 */
9 class SearchDbTest extends SearchEngineTest {
10 var $db;
11
12 function setUp() {
13 // Get a database connection or skip test
14 $this->db = wfGetDB( DB_MASTER );
15 if ( !$this->db ) {
16 $this->markTestIncomplete( "Can't find a database to test with." );
17 }
18
19 parent::setup();
20
21 // Initialize search database with data
22 $GLOBALS['wgContLang'] = new Language;
23 $this->insertSearchData();
24
25 $this->insertSearchData();
26 $searchType = preg_replace( "/Database/", "Search",
27 get_class( $this->db ) );
28 $this->search = new $searchType( $this->db );
29 }
30
31 function tearDown() {
32 $this->removeSearchData();
33 unset( $this->search );
34 }
35 }
36
37