mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-19 19:31:16 +00:00
8a8e51d8c7
It affects the behavior of mw.uri.anchorEncode() Change-Id: I3a704507cda79a2a48ec58ce9b7500667ea0dda3
27 lines
643 B
PHP
27 lines
643 B
PHP
<?php
|
|
|
|
class Scribunto_LuaUriLibraryTest extends Scribunto_LuaEngineTestBase {
|
|
protected static $moduleName = 'UriLibraryTests';
|
|
|
|
protected function setUp() : void {
|
|
parent::setUp();
|
|
|
|
$this->setMwGlobals( [
|
|
'wgServer' => '//wiki.local',
|
|
'wgCanonicalServer' => 'http://wiki.local',
|
|
'wgUsePathInfo' => true,
|
|
'wgActionPaths' => [],
|
|
'wgScript' => '/w/index.php',
|
|
'wgScriptPath' => '/w',
|
|
'wgArticlePath' => '/wiki/$1',
|
|
'wgFragmentMode' => [ 'legacy', 'html5' ],
|
|
] );
|
|
}
|
|
|
|
protected function getTestModules() {
|
|
return parent::getTestModules() + [
|
|
'UriLibraryTests' => __DIR__ . '/UriLibraryTests.lua',
|
|
];
|
|
}
|
|
}
|