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