Fix (marking as incomplete) the test ApiWatchTest::testGetRollbackToken for
authorPlatonides <platonides@users.mediawiki.org>
Wed, 6 Oct 2010 16:29:18 +0000 (16:29 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 6 Oct 2010 16:29:18 +0000 (16:29 +0000)
Failed asserting that an array has the key <string:pageid>

when there's no [[Main Page]] (eg. it was installed in a different language).

maintenance/tests/phpunit/includes/api/ApiWatchTest.php

index cf64678..1333cc5 100644 (file)
@@ -154,6 +154,10 @@ class ApiWatchTest extends ApiTestSetup {
         * @depends testGetToken
         */
        function testGetRollbackToken( $data ) {
+               if ( !Title::newFromText( 'Main Page' )->exists() ) {
+                       $this->markTestIncomplete( "The article [[Main Page]] does not exist" );
+               }
+               
                $data = $this->doApiRequest( array(
                        'action' => 'query',
                        'prop' => 'revisions',