mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-12 08:25:10 +00:00
f129988d82
Change-Id: I81e957035175f9fe0dad9494c92ab342283df983
27 lines
666 B
PHP
27 lines
666 B
PHP
<?php
|
|
|
|
class Scribunto_LuaHtmlLibraryTest extends Scribunto_LuaEngineUnitTestBase {
|
|
/** @inheritDoc */
|
|
protected static $moduleName = 'HtmlLibraryTests';
|
|
|
|
protected function setUp() : void {
|
|
parent::setUp();
|
|
|
|
// For strip marker test
|
|
$markers = [
|
|
'nowiki' => Parser::MARKER_PREFIX . '-test-nowiki-' . Parser::MARKER_SUFFIX,
|
|
];
|
|
$interpreter = $this->getEngine()->getInterpreter();
|
|
$interpreter->callFunction(
|
|
$interpreter->loadString( 'mw.html.stripMarkers = ...', 'fortest' ),
|
|
$markers
|
|
);
|
|
}
|
|
|
|
protected function getTestModules() {
|
|
return parent::getTestModules() + [
|
|
'HtmlLibraryTests' => __DIR__ . '/HtmlLibraryTests.lua',
|
|
];
|
|
}
|
|
}
|