From: Brad Jorsch Date: Thu, 12 Apr 2018 17:00:35 +0000 (-0400) Subject: ApiMainTest: Fix typo X-Git-Tag: 1.31.0-rc.0~101^2 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=4d2ab8d30f988c119db8f47689ad815f35324b0b;p=lhc%2Fweb%2Fwiklou.git ApiMainTest: Fix typo The mock wants to mock getRawIP, not getIP. Change-Id: Id7febba6ba6a6762ebdd273fc882330c65882cd6 --- diff --git a/tests/phpunit/includes/api/ApiMainTest.php b/tests/phpunit/includes/api/ApiMainTest.php index 8ffe4fcfb9..d17334bb06 100644 --- a/tests/phpunit/includes/api/ApiMainTest.php +++ b/tests/phpunit/includes/api/ApiMainTest.php @@ -46,7 +46,7 @@ class ApiMainTest extends ApiTestCase { */ private function getNonInternalApiMain( array $requestData, array $headers = [] ) { $req = $this->getMockBuilder( WebRequest::class ) - ->setMethods( [ 'response', 'getIP' ] ) + ->setMethods( [ 'response', 'getRawIP' ] ) ->getMock(); $response = new FauxResponse(); $req->method( 'response' )->willReturn( $response );