parserTest: Make $wgResourceBasePath match $wgScriptPath
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 23 Feb 2016 02:13:11 +0000 (02:13 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 23 Feb 2016 02:23:05 +0000 (02:23 +0000)
commit2eeda9bc7d6f26fc72ca8a2158f87912b1bb5770
tree6d59ebd1cad8b08a4e94e69bb47cb3db523b3cb4
parent0e19c0483884854a7bb9c41f68249312e8413823
parserTest: Make $wgResourceBasePath match $wgScriptPath

Right now it forgets to reset $wgResourceBasePath, which means it
is inherited from the wikis's (or Jenkins') default settings which
is typically '/w'. That caused parser tests to behave as if pointers
to /extensions were outside /w.

Also update wgScriptPath to be '' instead of '/'. Otherwise this
can cause double-slash prefixed urls.

Change-Id: Ic455d62fca8fcac2c4ecc055cc0d7e311b70a94a
tests/parser/parserTest.inc
tests/parser/parserTests.txt
tests/phpunit/includes/parser/NewParserTest.php