mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-21 04:13:33 +00:00
69ed697681
Bug: T320330 Change-Id: I3456453226faa3ba68be4deca764839ea0f54539
33 lines
784 B
PHP
33 lines
784 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\Scribunto\Tests\Engines\LuaCommon;
|
|
|
|
/**
|
|
* @covers \MediaWiki\Extension\Scribunto\Engines\LuaCommon\UriLibrary
|
|
*/
|
|
class UriLibraryTest extends LuaEngineTestBase {
|
|
/** @inheritDoc */
|
|
protected static $moduleName = 'UriLibraryTests';
|
|
|
|
protected function setUp(): void {
|
|
parent::setUp();
|
|
|
|
$this->setMwGlobals( [
|
|
'wgServer' => '//wiki.local',
|
|
'wgCanonicalServer' => 'http://wiki.local',
|
|
'wgUsePathInfo' => true,
|
|
'wgActionPaths' => [],
|
|
'wgScript' => '/w/index.php',
|
|
'wgScriptPath' => '/w',
|
|
'wgArticlePath' => '/wiki/$1',
|
|
'wgFragmentMode' => [ 'legacy', 'html5' ],
|
|
] );
|
|
}
|
|
|
|
protected function getTestModules() {
|
|
return parent::getTestModules() + [
|
|
'UriLibraryTests' => __DIR__ . '/UriLibraryTests.lua',
|
|
];
|
|
}
|
|
}
|