MinervaNeue
A responsive mobile first skin
Loading...
Searching...
No Matches
MediaWiki\Minerva\SkinMinervaTest Class Reference

@coversDefaultClass \MediaWiki\Minerva\Skins\SkinMinerva @group MinervaNeue More...

+ Inheritance diagram for MediaWiki\Minerva\SkinMinervaTest:
+ Collaboration diagram for MediaWiki\Minerva\SkinMinervaTest:

Public Member Functions

 testHasPageActions (int $namespace, string $title, string $action, bool $expected)
 @dataProvider provideHasPageActions @covers ::hasPageActions
 
 testGetDefaultModules ()
 @covers ::getDefaultModules
 
 testHasPageTabs (array $options, int $namespace, string $title, string $action, bool $expected)
 @dataProvider provideHasPageTabs @covers ::hasPageTabs
 
 testGetTabsData ()
 @covers ::getTabsData
 
 testGetTabsDataNoPageTabs ()
 @covers ::getTabsData when hasPageTabs is false
 
 testGetTabsDataNoContentNavigationUrls ()
 @covers ::getTabsData when contentNavigationUrls is empty
 
 testGetTabsDataNoId ()
 @covers ::getTabsData when associatedPages has no id
 
 testGetHtmlElementAttributesNoNightMode ()
 @covers ::getHtmlElementAttributes when night mode is not enabled via feature flag or query params
 
 testGetHtmlElementAttributesNightMode ()
 @covers ::getHtmlElementAttributes when night mode is enabled via feature flag
 
 testGetHtmlElementAttributesNightModeQueryParam ()
 @covers ::getHtmlElementAttributes when night mode is set via query params
 
 testGetHtmlElementAttributesNightModeQueryParamInvalid ()
 @covers ::getHtmlElementAttributes when night mode is set via query params to an invalid option
 
 testGetHtmlElementAttributesNightModeUserOption ()
 @covers ::getHtmlElementAttributes when night mode is enabled and the value is not default
 
 testGetHtmlElementAttributesNightModeUserOptionQueryParamInvalid ()
 @covers ::getHtmlElementAttributes when night mode is enabled with non-default, and query param is invalid
 
 testHasCategoryLinksWhenOptionIsOff ()
 @covers ::setContext @covers ::hasCategoryLinks
 
 testHasCategoryLinks (array $categoryLinks, $expected)
 @dataProvider provideHasCategoryLinks @covers ::setContext @covers ::hasCategoryLinks
 
 testGetNotificationButtons ( $expected, $from)
 @dataProvider provideGetNotificationButtons
 

Static Public Member Functions

static provideHasPageActions ()
 
static provideHasPageTabs ()
 
static provideHasCategoryLinks ()
 
static provideGetNotificationButtons ()
 

Detailed Description

@coversDefaultClass \MediaWiki\Minerva\Skins\SkinMinerva @group MinervaNeue

Member Function Documentation

◆ testGetNotificationButtons()

MediaWiki\Minerva\SkinMinervaTest::testGetNotificationButtons ( $expected,
$from )

@dataProvider provideGetNotificationButtons

Parameters
array$expected
array$from@covers ::getNotificationButtons

The documentation for this class was generated from the following file: