MediaWiki
REL1_34
UriLibraryTest.php
Go to the documentation of this file.
1
<?php
2
3
class
Scribunto_LuaUriLibraryTest
extends
Scribunto_LuaEngineTestBase
{
4
protected
static
$moduleName
=
'UriLibraryTests'
;
5
6
protected
function
setUp
() {
7
parent::setUp();
8
9
$this->setMwGlobals( [
10
'wgServer'
=>
'//wiki.local'
,
11
'wgCanonicalServer'
=>
'http://wiki.local'
,
12
'wgUsePathInfo'
=>
true
,
13
'wgActionPaths'
=> [],
14
'wgScript'
=>
'/w/index.php'
,
15
'wgScriptPath'
=>
'/w'
,
16
'wgArticlePath'
=>
'/wiki/$1'
,
17
] );
18
}
19
20
protected
function
getTestModules
() {
21
return
parent::getTestModules() + [
22
'UriLibraryTests'
=> __DIR__ .
'/UriLibraryTests.lua'
,
23
];
24
}
25
}
Scribunto_LuaEngineTestBase
This is the subclass for Lua library tests.
Definition
LuaEngineTestBase.php:12
Scribunto_LuaUriLibraryTest
Definition
UriLibraryTest.php:3
Scribunto_LuaUriLibraryTest\setUp
setUp()
Definition
UriLibraryTest.php:6
Scribunto_LuaUriLibraryTest\$moduleName
static $moduleName
Definition
UriLibraryTest.php:4
Scribunto_LuaUriLibraryTest\getTestModules
getTestModules()
Definition
UriLibraryTest.php:20
extensions
Scribunto
tests
phpunit
engines
LuaCommon
UriLibraryTest.php
Generated on Mon Nov 25 2024 16:04:44 for MediaWiki by
1.10.0