mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-19 11:21:48 +00:00
ea0707c437
All LuaEngineTestBase subclasses must be in the Database group, as far as I can tell it can’t be avoided. (Several already are anyway.) We can’t centrally do this in the base class anymore (needsDB() can no longer be overridden), so just add it to the phpdoc here. Bug: T345372 Change-Id: I47016ec84ed227f755f94a383bee8053975b4c81
35 lines
806 B
PHP
35 lines
806 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\Scribunto\Tests\Engines\LuaCommon;
|
|
|
|
/**
|
|
* @covers \MediaWiki\Extension\Scribunto\Engines\LuaCommon\UriLibrary
|
|
*
|
|
* @group Database
|
|
*/
|
|
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',
|
|
];
|
|
}
|
|
}
|