mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-19 11:21:48 +00:00
073a365759
Revert "Revert "Namespace LuaCommon""
This reverts commit 18d122b60d
.
Change-Id: I74fd43f7920c8772e9078f745ac6062d5461a7f1
27 lines
642 B
PHP
27 lines
642 B
PHP
<?php
|
|
|
|
class HtmlLibraryTest extends 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',
|
|
];
|
|
}
|
|
}
|