mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-30 02:54:26 +00:00
db9fd2b39b
Change-Id: I1d94a8c288537ada038f24f2ec26922d95f14785
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',
|
|
);
|
|
}
|
|
}
|