Use WikiPage instead of Article
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 11 Dec 2011 09:44:02 +0000 (09:44 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 11 Dec 2011 09:44:02 +0000 (09:44 +0000)
tests/parser/parserTest.inc

index d9acf6a..e7478f2 100644 (file)
@@ -1167,8 +1167,8 @@ class ParserTest {
                        throw new MWException( "duplicate article '$name' at line $line\n" );
                }
 
-               $art = new Article( $title );
-               $art->doEdit( $text, '', EDIT_NEW );
+               $page = WikiPage::factory( $title );
+               $page->doEdit( $text, '', EDIT_NEW );
 
                $wgCapitalLinks = $oldCapitalLinks;
        }