mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-23 22:03:39 +00:00
Fix failing SkinMinerva unit test
Bug: T170624 Change-Id: I13fff8eba06abad43291e481f32d9eb30c0f031b
This commit is contained in:
parent
9d90df7b0b
commit
d5461f55a1
|
@ -33,7 +33,7 @@ class EchoNotifUser {
|
|||
}
|
||||
|
||||
/**
|
||||
* @coversDefaultClass SkinMinerva
|
||||
* @coversDefaultClass SkinMinerva
|
||||
* @group MobileFrontend
|
||||
*/
|
||||
class SkinMinervaTest extends MediaWikiTestCase {
|
||||
|
@ -170,12 +170,7 @@ class SkinMinervaTest extends MediaWikiTestCase {
|
|||
public function testGetContextSpecificModules( $fontchangerValue, $backToTopValue,
|
||||
$moduleName, $expected
|
||||
) {
|
||||
$skin = TestingAccessWrapper::newFromObject(
|
||||
$this->getMockBuilder( SkinMinerva::class )
|
||||
->disableOriginalConstructor()
|
||||
->setMethods( [ 'getTitle' ] )
|
||||
->getMock()
|
||||
);
|
||||
$skin = new SkinMinerva();
|
||||
$title = Title::newFromText( 'Test' );
|
||||
$testContext = RequestContext::getMain();
|
||||
$testContext->setTitle( $title );
|
||||
|
|
Loading…
Reference in a new issue