MaxSem has uploaded a new change for review.
https://gerrit.wikimedia.org/r/163658
Change subject: Implement FauxRequest::getRequestURL() - needed for MF tests
......................................................................
Implement FauxRequest::getRequestURL() - needed for MF tests
Change-Id: Ib780582cdc68cb770c5fd12d805f4561bc0e2a13
(cherry picked from commit 14433b56fdd34fcca848b50ce3da2f5b52a85d58)
---
M includes/WebRequest.php
1 file changed, 9 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/58/163658/1
diff --git a/includes/WebRequest.php b/includes/WebRequest.php
index b187c4a..1cbdbf9 100644
--- a/includes/WebRequest.php
+++ b/includes/WebRequest.php
@@ -1255,6 +1255,7 @@
class FauxRequest extends WebRequest {
private $wasPosted = false;
private $session = array();
+ private $requestUrl;
/**
* @param array $data Array of *non*-urlencoded key => value pairs, the
@@ -1334,8 +1335,15 @@
return false;
}
+ public function setRequestURL( $url ) {
+ $this->requestUrl = $url;
+ }
+
public function getRequestURL() {
- $this->notImplemented( __METHOD__ );
+ if ( $this->requestUrl === null ) {
+ throw new MWException( 'Request URL not set' );
+ }
+ return $this->requestUrl;
}
public function getProtocol() {
--
To view, visit https://gerrit.wikimedia.org/r/163658
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib780582cdc68cb770c5fd12d805f4561bc0e2a13
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.25wmf1
Gerrit-Owner: MaxSem <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits