mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-11 07:56:10 +00:00
44fe3df9bf
Change-Id: I510e5516d56b28d26510423da840b4b496a10833
27 lines
707 B
PHP
27 lines
707 B
PHP
<?php
|
|
|
|
// @codingStandardsIgnoreLine Squiz.Classes.ValidClassName.NotCamelCaps
|
|
class Scribunto_LuaHtmlLibraryTest extends Scribunto_LuaEngineTestBase {
|
|
protected static $moduleName = 'HtmlLibraryTests';
|
|
|
|
protected function setUp() {
|
|
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',
|
|
];
|
|
}
|
|
}
|