From 69e9f4795378d9a98559b09d2097f4b5860f195b Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 6 Oct 2010 16:29:18 +0000 Subject: [PATCH] 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). --- maintenance/tests/phpunit/includes/api/ApiWatchTest.php | 4 ++++ 1 file changed, 4 insertions(+) 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', -- 2.20.1