dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "RevertAction: Prevent file revert if current version is identical"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
deferred
/
SearchUpdateTest.php
diff --git
a/tests/phpunit/includes/deferred/SearchUpdateTest.php
b/tests/phpunit/includes/deferred/SearchUpdateTest.php
index
90438a0
..
602a175
100644
(file)
--- 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 {
*/
class SearchUpdateTest extends MediaWikiTestCase {
+ /**
+ * @var SearchUpdate
+ */
+ private $su;
+
protected function setUp() {
parent::setUp();
$this->setMwGlobals( 'wgSearchType', 'MockSearch' );
protected function setUp() {
parent::setUp();
$this->setMwGlobals( 'wgSearchType', 'MockSearch' );
+ $this->su = new SearchUpdate( 0, "" );
}
public function updateText( $text ) {
}
public function updateText( $text ) {
- return trim(
SearchUpdate::
updateText( $text ) );
+ return trim(
$this->su->
updateText( $text ) );
}
/**
}
/**