Index: trunk/phase3/tests/phpunit/MediaWikiTestCase.php |
— | — | @@ -128,12 +128,12 @@ |
129 | 129 | |
130 | 130 | |
131 | 131 | //Make 1 page with 1 revision |
132 | | - $article = new Article( Title::newFromText( 'UTPage' ) ); |
133 | | - $article->doEdit( 'UTContent', |
134 | | - 'UTPageSummary', |
135 | | - EDIT_NEW, |
136 | | - false, |
137 | | - User::newFromName( 'UTSysop' ) ); |
| 132 | + $page = WikiPage::factory( Title::newFromText( 'UTPage' ) ); |
| 133 | + $page->doEdit( 'UTContent', |
| 134 | + 'UTPageSummary', |
| 135 | + EDIT_NEW, |
| 136 | + false, |
| 137 | + User::newFromName( 'UTSysop' ) ); |
138 | 138 | } |
139 | 139 | |
140 | 140 | private function initDB() { |