diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
commit | 222b01f5169f1c7e69762e0e8904c24f78f71882 (patch) | |
tree | 8e932e12546bb991357ec48eb1638d1770be7a35 /maintenance/tests/SearchMySQLTest.php | |
parent | 00ab76a6b686e98a914afc1975812d2b1aaa7016 (diff) |
update to MediaWiki 1.16.0
Diffstat (limited to 'maintenance/tests/SearchMySQLTest.php')
-rw-r--r-- | maintenance/tests/SearchMySQLTest.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/maintenance/tests/SearchMySQLTest.php b/maintenance/tests/SearchMySQLTest.php new file mode 100644 index 00000000..526f6216 --- /dev/null +++ b/maintenance/tests/SearchMySQLTest.php @@ -0,0 +1,26 @@ +<?php +require_once( 'SearchEngineTest.php' ); + +class SearchMySQLTest extends SearchEngineTest { + var $db; + + function setUp() { + $GLOBALS['wgContLang'] = new Language; + $this->db = $this->buildTestDatabase( + array( 'page', 'revision', 'text', 'searchindex', 'user' ) ); + if( $this->db ) { + $this->insertSearchData(); + } + $this->search = new SearchMySQL( $this->db ); + } + + function tearDown() { + if( !is_null( $this->db ) ) { + wfGetLB()->closeConnecton( $this->db ); + } + unset( $this->db ); + unset( $this->search ); + } +} + + |