From: Alexandre Emsenhuber Date: Fri, 27 Jan 2012 21:21:19 +0000 (+0000) Subject: Use WikiPage instead of Article to call doDeleteArticle() X-Git-Tag: 1.31.0-rc.0~25049 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=308660c29a84ca01fd49aef52678100e356a26e3;p=lhc%2Fweb%2Fwiklou.git Use WikiPage instead of Article to call doDeleteArticle() --- diff --git a/tests/phpunit/includes/api/ApiTestCaseUpload.php b/tests/phpunit/includes/api/ApiTestCaseUpload.php index 8c86928f32..39c7954773 100644 --- a/tests/phpunit/includes/api/ApiTestCaseUpload.php +++ b/tests/phpunit/includes/api/ApiTestCaseUpload.php @@ -37,8 +37,8 @@ abstract class ApiTestCaseUpload extends ApiTestCase { if ( !$status->isGood() ) { return false; } - $article = new Article( $title ); - $article->doDeleteArticle( "removing for test" ); + $page = WikiPage::factory( $title ); + $page->doDeleteArticle( "removing for test" ); // see if it now doesn't exist; reload $title = Title::newFromText( $title->getText(), NS_FILE );