From b9a7cef88a73928417b0b8667e8db2c895099e02 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 3 Oct 2010 22:51:01 +0000 Subject: [PATCH] Nuke returns from end of tests --- .../tests/phpunit/includes/api/ApiWatchTest.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/maintenance/tests/phpunit/includes/api/ApiWatchTest.php b/maintenance/tests/phpunit/includes/api/ApiWatchTest.php index bf1d010c23..58d1397971 100644 --- a/maintenance/tests/phpunit/includes/api/ApiWatchTest.php +++ b/maintenance/tests/phpunit/includes/api/ApiWatchTest.php @@ -29,8 +29,6 @@ class ApiWatchTest extends ApiTestSetup { $this->assertArrayHasKey( "result", $data[0]['login'] ); $this->assertEquals( "Success", $data[0]['login']['result'] ); $this->assertArrayHasKey( 'lgtoken', $data[0]['login'] ); - - return $data; } function testGetToken() { @@ -53,8 +51,6 @@ class ApiWatchTest extends ApiTestSetup { $this->assertArrayHasKey( 'blocktoken', $data[0]['query']['pages'][$key] ); $this->assertArrayHasKey( 'unblocktoken', $data[0]['query']['pages'][$key] ); $this->assertArrayHasKey( 'protecttoken', $data[0]['query']['pages'][$key] ); - - return $data; } /** @@ -74,11 +70,8 @@ class ApiWatchTest extends ApiTestSetup { $this->assertArrayHasKey( 'edit', $data[0] ); $this->assertArrayHasKey( 'result', $data[0]['edit'] ); $this->assertEquals( 'Success', $data[0]['edit']['result'] ); - - return $data; } - /** * @depends testWatchEdit */ @@ -103,8 +96,6 @@ class ApiWatchTest extends ApiTestSetup { $this->assertArrayHasKey( 'query', $data[0] ); $this->assertArrayHasKey( 'watchlist', $data[0]['query'] ); $this->assertEquals( 0, count( $data[0]['query']['watchlist'] ) ); - - return $data; } /** @@ -147,8 +138,6 @@ class ApiWatchTest extends ApiTestSetup { $this->assertArrayHasKey( 'revisions', $data[0]['query']['pages'][$key] ); $this->assertArrayHasKey( 0, $data[0]['query']['pages'][$key]['revisions'] ); $this->assertArrayHasKey( 'rollbacktoken', $data[0]['query']['pages'][$key]['revisions'][0] ); - - return $data; } /** -- 2.20.1