FauxRequest: Remove influence from $wgRequest on getFullRequestURL()
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 19 Apr 2019 23:35:15 +0000 (00:35 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 19 Apr 2019 23:57:49 +0000 (00:57 +0100)
commit9d225ee6039c56dae3275ceb96d4a1d9e3c6fe08
treeff6b61bd486c0fa5fff234d900225887c1b83833
parent86c13ba3ad15f7ab4c567b30c2810fe36db102df
FauxRequest: Remove influence from $wgRequest on getFullRequestURL()

It inherited the method from WebRequest, which in turn uses
PROTO_CURRENT, which indirectly makes it then look up $wgRequest->protocol
to decide how to expand the url.

This global state isn't expected from FauxRequest and makes its
result less than predictable.

Change-Id: Ia616e0bfa00c35f78d27db55f26b336a7d0c7606
includes/FauxRequest.php
tests/phpunit/includes/FauxRequestTest.php