r110172 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110171‎ | r110172 | r110173 >
Date:21:21, 27 January 2012
Author:ialex
Status:ok
Tags:
Comment:
Use WikiPage instead of Article to call doDeleteArticle()
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/api/ApiTestCaseUpload.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/api/ApiTestCaseUpload.php
@@ -37,8 +37,8 @@
3838 if ( !$status->isGood() ) {
3939 return false;
4040 }
41 - $article = new Article( $title );
42 - $article->doDeleteArticle( "removing for test" );
 41+ $page = WikiPage::factory( $title );
 42+ $page->doDeleteArticle( "removing for test" );
4343
4444 // see if it now doesn't exist; reload
4545 $title = Title::newFromText( $title->getText(), NS_FILE );

Status & tagging log