From 308660c29a84ca01fd49aef52678100e356a26e3 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 27 Jan 2012 21:21:19 +0000 Subject: [PATCH] Use WikiPage instead of Article to call doDeleteArticle() --- tests/phpunit/includes/api/ApiTestCaseUpload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1