Index: trunk/phase3/tests/phpunit/includes/search/SearchEngineTest.php |
— | — | @@ -93,10 +93,10 @@ |
94 | 94 | // avoid memory leak...? |
95 | 95 | LinkCache::singleton()->clear(); |
96 | 96 | |
97 | | - $article = new Article( $title ); |
98 | | - $article->doEdit( $text, $comment, 0, false, $user ); |
| 97 | + $page = WikiPage::factory( $title ); |
| 98 | + $page->doEdit( $text, $comment, 0, false, $user ); |
99 | 99 | |
100 | | - $this->pageList[] = array( $title, $article->getId() ); |
| 100 | + $this->pageList[] = array( $title, $page->getId() ); |
101 | 101 | |
102 | 102 | return true; |
103 | 103 | } |