From: Platonides Date: Wed, 6 Oct 2010 16:29:18 +0000 (+0000) Subject: Fix (marking as incomplete) the test ApiWatchTest::testGetRollbackToken for X-Git-Tag: 1.31.0-rc.0~34605 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=69e9f4795378d9a98559b09d2097f4b5860f195b;p=lhc%2Fweb%2Fwiklou.git Fix (marking as incomplete) the test ApiWatchTest::testGetRollbackToken for Failed asserting that an array has the key when there's no [[Main Page]] (eg. it was installed in a different language). --- diff --git a/maintenance/tests/phpunit/includes/api/ApiWatchTest.php b/maintenance/tests/phpunit/includes/api/ApiWatchTest.php index cf6467864c..1333cc53a2 100644 --- a/maintenance/tests/phpunit/includes/api/ApiWatchTest.php +++ b/maintenance/tests/phpunit/includes/api/ApiWatchTest.php @@ -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',