2013-01-26 00:09:50 +00:00
|
|
|
<?php
|
|
|
|
|
2018-03-10 13:15:42 +00:00
|
|
|
class Scribunto_LuaUriLibraryTest extends Scribunto_LuaEngineTestBase {
|
2013-01-26 00:09:50 +00:00
|
|
|
protected static $moduleName = 'UriLibraryTests';
|
|
|
|
|
2019-10-11 18:31:29 +00:00
|
|
|
protected function setUp() : void {
|
2013-01-26 00:09:50 +00:00
|
|
|
parent::setUp();
|
|
|
|
|
2017-06-15 17:19:00 +00:00
|
|
|
$this->setMwGlobals( [
|
2013-01-26 00:09:50 +00:00
|
|
|
'wgServer' => '//wiki.local',
|
|
|
|
'wgCanonicalServer' => 'http://wiki.local',
|
|
|
|
'wgUsePathInfo' => true,
|
2017-06-15 17:19:00 +00:00
|
|
|
'wgActionPaths' => [],
|
2013-01-26 00:09:50 +00:00
|
|
|
'wgScript' => '/w/index.php',
|
|
|
|
'wgScriptPath' => '/w',
|
|
|
|
'wgArticlePath' => '/wiki/$1',
|
2020-01-02 19:51:11 +00:00
|
|
|
'wgFragmentMode' => [ 'legacy', 'html5' ],
|
2017-06-15 17:19:00 +00:00
|
|
|
] );
|
2013-01-26 00:09:50 +00:00
|
|
|
}
|
|
|
|
|
2014-11-12 11:21:38 +00:00
|
|
|
protected function getTestModules() {
|
2017-06-15 17:19:00 +00:00
|
|
|
return parent::getTestModules() + [
|
2013-01-26 00:09:50 +00:00
|
|
|
'UriLibraryTests' => __DIR__ . '/UriLibraryTests.lua',
|
2017-06-15 17:19:00 +00:00
|
|
|
];
|
2013-01-26 00:09:50 +00:00
|
|
|
}
|
|
|
|
}
|