Added release notes for 'ContentHandler::runLegacyHooks' removal
[mediawiki.git] / tests / phpunit / includes / skins / SkinTemplateTest.php
blobff544cd23d484d09f523e56823d635b0db793402
1 <?php
3 /**
4 * @covers SkinTemplate
6 * @group Output
8 * @author Bene* < benestar.wikimedia@gmail.com >
9 */
11 class SkinTemplateTest extends MediaWikiTestCase {
12 /**
13 * @dataProvider makeListItemProvider
15 public function testMakeListItem( $expected, $key, $item, $options, $message ) {
16 $template = $this->getMockForAbstractClass( 'BaseTemplate' );
18 $this->assertEquals(
19 $expected,
20 $template->makeListItem( $key, $item, $options ),
21 $message
25 public function makeListItemProvider() {
26 return [
28 '<li class="class" title="itemtitle"><a href="url" title="title">text</a></li>',
29 '',
31 'class' => 'class',
32 'itemtitle' => 'itemtitle',
33 'href' => 'url',
34 'title' => 'title',
35 'text' => 'text'
37 [],
38 'Test makeListItem with normal values'