MediaWiki REL1_34
HtmlLibraryTest.php
Go to the documentation of this file.
1<?php
2
4 protected static $moduleName = 'HtmlLibraryTests';
5
6 protected function setUp() {
7 parent::setUp();
8
9 // For strip marker test
10 $markers = [
11 'nowiki' => Parser::MARKER_PREFIX . '-test-nowiki-' . Parser::MARKER_SUFFIX,
12 ];
13 $interpreter = $this->getEngine()->getInterpreter();
14 $interpreter->callFunction(
15 $interpreter->loadString( 'mw.html.stripMarkers = ...', 'fortest' ),
16 $markers
17 );
18 }
19
20 protected function getTestModules() {
21 return parent::getTestModules() + [
22 'HtmlLibraryTests' => __DIR__ . '/HtmlLibraryTests.lua',
23 ];
24 }
25}
This is the subclass for Lua library tests.