dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5728340
)
ApiMainTest: Fix typo
author
Brad Jorsch
<bjorsch@wikimedia.org>
Thu, 12 Apr 2018 17:00:35 +0000
(13:00 -0400)
committer
Brad Jorsch
<bjorsch@wikimedia.org>
Thu, 12 Apr 2018 17:00:35 +0000
(13:00 -0400)
The mock wants to mock getRawIP, not getIP.
Change-Id: Id7febba6ba6a6762ebdd273fc882330c65882cd6
tests/phpunit/includes/api/ApiMainTest.php
patch
|
blob
|
history
diff --git
a/tests/phpunit/includes/api/ApiMainTest.php
b/tests/phpunit/includes/api/ApiMainTest.php
index
8ffe4fc
..
d17334b
100644
(file)
--- 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', 'get
Raw
IP' ] )
->getMock();
$response = new FauxResponse();
$req->method( 'response' )->willReturn( $response );