The mock wants to mock getRawIP, not getIP.
Change-Id: Id7febba6ba6a6762ebdd273fc882330c65882cd6
*/
private function getNonInternalApiMain( array $requestData, array $headers = [] ) {
$req = $this->getMockBuilder( WebRequest::class )
*/
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 );
->getMock();
$response = new FauxResponse();
$req->method( 'response' )->willReturn( $response );