Index: trunk/phase3/tests/phpunit/includes/upload/UploadFromUrlTest.php |
— | — | @@ -228,8 +228,8 @@ |
229 | 229 | |
230 | 230 | $talk = $this->user->user->getTalkPage(); |
231 | 231 | if ( $talk->exists() ) { |
232 | | - $a = new Article( $talk ); |
233 | | - $a->doDeleteArticle( '' ); |
| 232 | + $page = WikiPage::factory( $talk ); |
| 233 | + $page->doDeleteArticle( '' ); |
234 | 234 | } |
235 | 235 | |
236 | 236 | $this->assertFalse( (bool)$talk->getArticleId( Title::GAID_FOR_UPDATE ), 'User talk does not exist' ); |
— | — | @@ -341,8 +341,8 @@ |
342 | 342 | $file = wfFindFile( $name, array( 'ignoreRedirect' => true ) ); |
343 | 343 | $empty = ""; |
344 | 344 | FileDeleteForm::doDelete( $t, $file, $empty, "none", true ); |
345 | | - $a = new Article ( $t ); |
346 | | - $a->doDeleteArticle( "testing" ); |
| 345 | + $page = WikiPage::factory( $t ); |
| 346 | + $page->doDeleteArticle( "testing" ); |
347 | 347 | } |
348 | 348 | $t = Title::newFromText( $name, NS_FILE ); |
349 | 349 | |