2013-01-26 00:09:50 +00:00
|
|
|
<?php
|
|
|
|
|
2022-07-30 22:43:58 +00:00
|
|
|
namespace MediaWiki\Extension\Scribunto\Tests\Engines\LuaCommon;
|
|
|
|
|
2024-08-26 14:57:38 +00:00
|
|
|
use MediaWiki\MainConfigNames;
|
|
|
|
|
2022-10-08 19:51:24 +00:00
|
|
|
/**
|
|
|
|
* @covers \MediaWiki\Extension\Scribunto\Engines\LuaCommon\UriLibrary
|
|
|
|
*/
|
2022-08-03 12:31:15 +00:00
|
|
|
class UriLibraryTest extends LuaEngineTestBase {
|
2021-01-23 01:33:17 +00:00
|
|
|
/** @inheritDoc */
|
2013-01-26 00:09:50 +00:00
|
|
|
protected static $moduleName = 'UriLibraryTests';
|
|
|
|
|
2021-07-23 10:49:13 +00:00
|
|
|
protected function setUp(): void {
|
2013-01-26 00:09:50 +00:00
|
|
|
parent::setUp();
|
|
|
|
|
2024-03-10 12:42:04 +00:00
|
|
|
$this->overrideConfigValues( [
|
2024-08-26 14:57:38 +00:00
|
|
|
MainConfigNames::Server => '//wiki.local',
|
|
|
|
MainConfigNames::CanonicalServer => 'http://wiki.local',
|
|
|
|
MainConfigNames::UsePathInfo => true,
|
|
|
|
MainConfigNames::ActionPaths => [],
|
|
|
|
MainConfigNames::Script => '/w/index.php',
|
|
|
|
MainConfigNames::ScriptPath => '/w',
|
|
|
|
MainConfigNames::ArticlePath => '/wiki/$1',
|
|
|
|
MainConfigNames::FragmentMode => [ 'legacy', 'html5' ],
|
2017-06-15 17:19:00 +00:00
|
|
|
] );
|
2013-01-26 00:09:50 +00:00
|
|
|
}
|
|
|
|
|
2014-11-12 11:21:38 +00:00
|
|
|
protected function getTestModules() {
|
2017-06-15 17:19:00 +00:00
|
|
|
return parent::getTestModules() + [
|
2013-01-26 00:09:50 +00:00
|
|
|
'UriLibraryTests' => __DIR__ . '/UriLibraryTests.lua',
|
2017-06-15 17:19:00 +00:00
|
|
|
];
|
2013-01-26 00:09:50 +00:00
|
|
|
}
|
|
|
|
}
|