mediawiki-extensions-Scribunto/tests/engines/LuaCommon/UriLibraryTest.php
Brad Jorsch db9fd2b39b Add mw.uri library
Change-Id: I1d94a8c288537ada038f24f2ec26922d95f14785
2013-02-07 13:31:24 -05:00

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',
);
}
}