15 $template = $this->getMockForAbstractClass( BaseTemplate::class );
27 '<li class="class" title="itemtitle"><a href="url" title="title">text</a></li>',
31 'itemtitle' =>
'itemtitle',
37 'Test makeListItem with normal values'
46 $mock = $this->getMockBuilder( OutputPage::class )
47 ->disableOriginalConstructor()
49 $mock->expects( $this->once() )
50 ->method(
'isSyndicated' )
51 ->will( $this->returnValue( $isSyndicated ) );
52 $mock->expects( $this->once() )
54 ->will( $this->returnValue(
$html ) );
60 'mediawiki.legacy.shared',
61 'mediawiki.legacy.commonPrint',
62 'mediawiki.sectionAnchor',
64 $buttonStyle =
'mediawiki.ui.button';
65 $feedStyle =
'mediawiki.feedlink';
73 array_merge( $defaultStyles, [ $feedStyle ] )
77 array_merge( $defaultStyles, [ $buttonStyle ] )
81 array_merge( $defaultStyles, [ $feedStyle, $buttonStyle ] )
94 $outputPageMock->expects( $this->once() )
95 ->method(
'addModuleStyles' )
96 ->with( $expectedModuleStyles );
99 $skinTemplate->setupSkinUserCss( $outputPageMock );
provideSetupSkinUserCss()
testMakeListItem( $expected, $key, $item, $options, $message)
makeListItemProvider
testSetupSkinUserCss( $outputPageMock, $expectedModuleStyles)
getMockOutputPage( $isSyndicated, $html)
Base class for template-based skins.
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping $template
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses & $html