mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-25 08:36:21 +00:00
26 lines
586 B
PHP
26 lines
586 B
PHP
|
<?php
|
||
|
|
||
|
class Scribunto_LuaUriLibraryTests extends Scribunto_LuaEngineTestBase {
|
||
|
protected static $moduleName = 'UriLibraryTests';
|
||
|
|
||
|
function setUp() {
|
||
|
parent::setUp();
|
||
|
|
||
|
$this->setMwGlobals( array(
|
||
|
'wgServer' => '//wiki.local',
|
||
|
'wgCanonicalServer' => 'http://wiki.local',
|
||
|
'wgUsePathInfo' => true,
|
||
|
'wgActionPaths' => array(),
|
||
|
'wgScript' => '/w/index.php',
|
||
|
'wgScriptPath' => '/w',
|
||
|
'wgArticlePath' => '/wiki/$1',
|
||
|
) );
|
||
|
}
|
||
|
|
||
|
function getTestModules() {
|
||
|
return parent::getTestModules() + array(
|
||
|
'UriLibraryTests' => __DIR__ . '/UriLibraryTests.lua',
|
||
|
);
|
||
|
}
|
||
|
}
|