X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fdeferred%2FSearchUpdateTest.php;h=9e4dbea221a22ccfce4b95faaadc18e8a13ab072;hb=c2e9f2f98181c9dfcfe16f17a5b64a6c501f3099;hp=90438a04367bc7705f3dfd0c9978bceaed963c0e;hpb=0e0a9e4435a3da19fa47f43ef5450cbcf219735c;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/deferred/SearchUpdateTest.php b/tests/phpunit/includes/deferred/SearchUpdateTest.php index 90438a0436..9e4dbea221 100644 --- a/tests/phpunit/includes/deferred/SearchUpdateTest.php +++ b/tests/phpunit/includes/deferred/SearchUpdateTest.php @@ -20,13 +20,19 @@ class MockSearch extends SearchEngine { */ 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 ) ); } /** @@ -60,13 +66,13 @@ EOT $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() {