mediawiki-extensions-Scribunto/tests/phpunit/engines/LuaCommon/HtmlLibraryTest.php
Umherirrender f129988d82 Improve function and property documentation in tests
Change-Id: I81e957035175f9fe0dad9494c92ab342283df983
2021-01-29 08:06:12 +00:00

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',
];
}
}