r62581 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62580‎ | r62581 | r62582 >
Date:11:52, 16 February 2010
Author:maxsem
Status:ok
Tags:
Comment:
Renamed SearchMySQL4Test to SearchMySQLTest, SearchMySQL4 was renamed long ago
Modified paths:
  • /trunk/phase3/maintenance/tests/SearchMySQL4Test.php (deleted) (history)
  • /trunk/phase3/maintenance/tests/SearchMySQLTest.php (added) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tests/SearchMySQL4Test.php
@@ -1,27 +0,0 @@
2 -<?php
3 -require_once( 'SearchEngineTest.php' );
4 -
5 -class SearchMySQL4Test extends SearchEngineTest {
6 - var $db;
7 -
8 - function setUp() {
9 - $GLOBALS['wgContLang'] = new Language;
10 - $this->db = $this->buildTestDatabase(
11 - array( 'page', 'revision', 'text', 'searchindex' ) );
12 - if( $this->db ) {
13 - $this->insertSearchData();
14 - }
15 - $this->search = new SearchMySQL4( $this->db );
16 - }
17 -
18 - function tearDown() {
19 - if( !is_null( $this->db ) ) {
20 - wfGetLB()->closeConnecton( $this->db );
21 - }
22 - unset( $this->db );
23 - unset( $this->search );
24 - }
25 -
26 -}
27 -
28 -
Index: trunk/phase3/maintenance/tests/SearchMySQLTest.php
@@ -0,0 +1,26 @@
 2+<?php
 3+require_once( 'SearchEngineTest.php' );
 4+
 5+class SearchMySQLTest extends SearchEngineTest {
 6+ var $db;
 7+
 8+ function setUp() {
 9+ $GLOBALS['wgContLang'] = new Language;
 10+ $this->db = $this->buildTestDatabase(
 11+ array( 'page', 'revision', 'text', 'searchindex' ) );
 12+ if( $this->db ) {
 13+ $this->insertSearchData();
 14+ }
 15+ $this->search = new SearchMySQL( $this->db );
 16+ }
 17+
 18+ function tearDown() {
 19+ if( !is_null( $this->db ) ) {
 20+ wfGetLB()->closeConnecton( $this->db );
 21+ }
 22+ unset( $this->db );
 23+ unset( $this->search );
 24+ }
 25+}
 26+
 27+
Property changes on: trunk/phase3/maintenance/tests/SearchMySQLTest.php
___________________________________________________________________
Name: svn:eol-style
128 + native
Name: svn:keywords
229 + Author Date Id Revision

Status & tagging log