16 $template = $this->getMockForAbstractClass(
'BaseTemplate' );
28 '<li class="class" title="itemtitle"><a href="url" title="title">text</a></li>',
32 'itemtitle' =>
'itemtitle',
38 'Test makeListItem with normal values'
47 $mock = $this->getMockBuilder( OutputPage::class )
48 ->disableOriginalConstructor()
50 $mock->expects( $this->once() )
51 ->method(
'isSyndicated' )
52 ->will( $this->returnValue( $isSyndicated ) );
53 $mock->expects( $this->once() )
55 ->will( $this->returnValue(
$html ) );
61 'mediawiki.legacy.shared',
62 'mediawiki.legacy.commonPrint',
63 'mediawiki.sectionAnchor',
65 $buttonStyle =
'mediawiki.ui.button';
66 $feedStyle =
'mediawiki.feedlink';
74 array_merge( $defaultStyles, [ $feedStyle ] )
78 array_merge( $defaultStyles, [ $buttonStyle ] )
82 array_merge( $defaultStyles, [ $feedStyle, $buttonStyle ] )
95 $outputPageMock->expects( $this->once() )
96 ->method(
'addModuleStyles' )
97 ->with( $expectedModuleStyles );
100 $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