2013-01-26 00:09:50 +00:00
|
|
|
<?php
|
|
|
|
|
2016-05-17 14:52:05 +00:00
|
|
|
// @codingStandardsIgnoreLine Squiz.Classes.ValidClassName.NotCamelCaps
|
2013-01-26 00:09:50 +00:00
|
|
|
class Scribunto_LuaUriLibraryTests extends Scribunto_LuaEngineTestBase {
|
|
|
|
protected static $moduleName = 'UriLibraryTests';
|
|
|
|
|
2014-11-12 11:21:38 +00:00
|
|
|
protected function setUp() {
|
2013-01-26 00:09:50 +00:00
|
|
|
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',
|
|
|
|
) );
|
|
|
|
}
|
|
|
|
|
2014-11-12 11:21:38 +00:00
|
|
|
protected function getTestModules() {
|
2013-01-26 00:09:50 +00:00
|
|
|
return parent::getTestModules() + array(
|
|
|
|
'UriLibraryTests' => __DIR__ . '/UriLibraryTests.lua',
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|