From 845767dd0970ec7a6f8fd8800ac12cdd8fa99168 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 6 Feb 2012 11:19:14 +0000 Subject: [PATCH] Use WikiPage instead of Article to call doEdit() and getId() --- tests/phpunit/includes/search/SearchEngineTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.20.1