r74369 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74368‎ | r74369 | r74370 >
Date:16:29, 6 October 2010
Author:platonides
Status:ok
Tags:
Comment:
Fix (marking as incomplete) the test ApiWatchTest::testGetRollbackToken for
Failed asserting that an array has the key <string:pageid>

when there's no [[Main Page]] (eg. it was installed in a different language).
Modified paths:
  • /trunk/phase3/maintenance/tests/phpunit/includes/api/ApiWatchTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tests/phpunit/includes/api/ApiWatchTest.php
@@ -154,6 +154,10 @@
155155 * @depends testGetToken
156156 */
157157 function testGetRollbackToken( $data ) {
 158+ if ( !Title::newFromText( 'Main Page' )->exists() ) {
 159+ $this->markTestIncomplete( "The article [[Main Page]] does not exist" );
 160+ }
 161+
158162 $data = $this->doApiRequest( array(
159163 'action' => 'query',
160164 'prop' => 'revisions',

Status & tagging log