From d5461f55a1f105aafdaf8986212ac68e736fc336 Mon Sep 17 00:00:00 2001 From: Piotr Miazga Date: Mon, 17 Jul 2017 22:34:47 +0200 Subject: [PATCH] Fix failing SkinMinerva unit test Bug: T170624 Change-Id: I13fff8eba06abad43291e481f32d9eb30c0f031b --- tests/phpunit/skins/SkinMinervaTest.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/phpunit/skins/SkinMinervaTest.php b/tests/phpunit/skins/SkinMinervaTest.php index 9c47447ab..54bfd1240 100644 --- a/tests/phpunit/skins/SkinMinervaTest.php +++ b/tests/phpunit/skins/SkinMinervaTest.php @@ -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 );