From: Alexandre Emsenhuber Date: Fri, 16 Dec 2011 18:55:20 +0000 (+0000) Subject: Use WikiPage instead of Article to call doEdit() X-Git-Tag: 1.31.0-rc.0~25933 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=46767b157efbfb2902f46a34971967ee472a6244;p=lhc%2Fweb%2Fwiklou.git Use WikiPage instead of Article to call doEdit() --- diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index fdc3b9b4f2..0a2f58be4b 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -128,12 +128,12 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { //Make 1 page with 1 revision - $article = new Article( Title::newFromText( 'UTPage' ) ); - $article->doEdit( 'UTContent', - 'UTPageSummary', - EDIT_NEW, - false, - User::newFromName( 'UTSysop' ) ); + $page = WikiPage::factory( Title::newFromText( 'UTPage' ) ); + $page->doEdit( 'UTContent', + 'UTPageSummary', + EDIT_NEW, + false, + User::newFromName( 'UTSysop' ) ); } private function initDB() {