X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FGlobalFunctions%2FwfAppendQueryTest.php;h=bb71610b64e7c9b5c94b6bfda24089c2b4250b0e;hb=767042c3e68adb29513;hp=eb9adea646dc824c525c1b7c0eb4511c1c95951a;hpb=6e9b4f0e9ce4ccd6089c18b205065ef7fa077484;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/GlobalFunctions/wfAppendQueryTest.php b/tests/phpunit/includes/GlobalFunctions/wfAppendQueryTest.php index eb9adea646..bb71610b64 100644 --- a/tests/phpunit/includes/GlobalFunctions/wfAppendQueryTest.php +++ b/tests/phpunit/includes/GlobalFunctions/wfAppendQueryTest.php @@ -61,6 +61,18 @@ class WfAppendQueryTest extends MediaWikiTestCase { 'baz=quux&foo=baz', 'http://www.example.org/index.php?foo=bar&baz=quux&foo=baz', 'Modify query string' + ], + [ + 'http://www.example.org/index.php#baz', + 'foo=bar', + 'http://www.example.org/index.php?foo=bar#baz', + 'URL with fragment' + ], + [ + 'http://www.example.org/index.php?foo=bar#baz', + 'quux=blah', + 'http://www.example.org/index.php?foo=bar&quux=blah#baz', + 'URL with query string and fragment' ] ]; }