r110740 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110739‎ | r110740 | r110741 >
Date:11:19, 6 February 2012
Author:ialex
Status:ok
Tags:
Comment:
Use WikiPage instead of Article to call doEdit() and getId()
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/search/SearchEngineTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/search/SearchEngineTest.php
@@ -93,10 +93,10 @@
9494 // avoid memory leak...?
9595 LinkCache::singleton()->clear();
9696
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 );
9999
100 - $this->pageList[] = array( $title, $article->getId() );
 100+ $this->pageList[] = array( $title, $page->getId() );
101101
102102 return true;
103103 }

Status & tagging log