r106461 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106460‎ | r106461 | r106462 >
Date:18:55, 16 December 2011
Author:ialex
Status:ok
Tags:
Comment:
Use WikiPage instead of Article to call doEdit()
Modified paths:
  • /trunk/phase3/tests/phpunit/MediaWikiTestCase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/MediaWikiTestCase.php
@@ -128,12 +128,12 @@
129129
130130
131131 //Make 1 page with 1 revision
132 - $article = new Article( Title::newFromText( 'UTPage' ) );
133 - $article->doEdit( 'UTContent',
134 - 'UTPageSummary',
135 - EDIT_NEW,
136 - false,
137 - User::newFromName( 'UTSysop' ) );
 132+ $page = WikiPage::factory( Title::newFromText( 'UTPage' ) );
 133+ $page->doEdit( 'UTContent',
 134+ 'UTPageSummary',
 135+ EDIT_NEW,
 136+ false,
 137+ User::newFromName( 'UTSysop' ) );
138138 }
139139
140140 private function initDB() {

Status & tagging log