From 4d2ab8d30f988c119db8f47689ad815f35324b0b Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Thu, 12 Apr 2018 13:00:35 -0400 Subject: [PATCH] ApiMainTest: Fix typo The mock wants to mock getRawIP, not getIP. Change-Id: Id7febba6ba6a6762ebdd273fc882330c65882cd6 --- tests/phpunit/includes/api/ApiMainTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1