*/
class SearchUpdateTest extends MediaWikiTestCase {
+ /**
+ * @var SearchUpdate
+ */
+ private $su;
+
protected function setUp() {
parent::setUp();
$this->setMwGlobals( 'wgSearchType', 'MockSearch' );
+ $this->su = new SearchUpdate( 0, "" );
}
public function updateText( $text ) {
- return trim( SearchUpdate::updateText( $text ) );
+ return trim( $this->su->updateText( $text ) );
}
/**
$this->assertNotEquals(
'',
$this->updateText( $text ),
- 'Bug 18609'
+ 'T20609'
);
}
/**
* @covers SearchUpdate::updateText
- * Test bug 32712
+ * Test T34712
* Test if unicode quotes in article links make its search index empty
*/
public function testUnicodeLinkSearchIndexError() {