From: Alexandre Emsenhuber Date: Mon, 6 Feb 2012 11:19:14 +0000 (+0000) Subject: Use WikiPage instead of Article to call doEdit() and getId() X-Git-Tag: 1.31.0-rc.0~24922 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=845767dd0970ec7a6f8fd8800ac12cdd8fa99168;p=lhc%2Fweb%2Fwiklou.git Use WikiPage instead of Article to call doEdit() and getId() --- diff --git a/tests/phpunit/includes/search/SearchEngineTest.php b/tests/phpunit/includes/search/SearchEngineTest.php index c1bf1343b3..957907c73c 100644 --- a/tests/phpunit/includes/search/SearchEngineTest.php +++ b/tests/phpunit/includes/search/SearchEngineTest.php @@ -93,10 +93,10 @@ class SearchEngineTest extends MediaWikiTestCase { // avoid memory leak...? LinkCache::singleton()->clear(); - $article = new Article( $title ); - $article->doEdit( $text, $comment, 0, false, $user ); + $page = WikiPage::factory( $title ); + $page->doEdit( $text, $comment, 0, false, $user ); - $this->pageList[] = array( $title, $article->getId() ); + $this->pageList[] = array( $title, $page->getId() ); return true; }