dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Skin: Make skins aware of their registered skin name
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
skins
/
SkinTemplateTest.php
diff --git
a/tests/phpunit/includes/skins/SkinTemplateTest.php
b/tests/phpunit/includes/skins/SkinTemplateTest.php
index
b843d17
..
e8260ac
100644
(file)
--- a/
tests/phpunit/includes/skins/SkinTemplateTest.php
+++ b/
tests/phpunit/includes/skins/SkinTemplateTest.php
@@
-44,7
+44,9
@@
class SkinTemplateTest extends MediaWikiTestCase {
* @return PHPUnit_Framework_MockObject_MockObject|OutputPage
*/
private function getMockOutputPage( $isSyndicated, $html ) {
* @return PHPUnit_Framework_MockObject_MockObject|OutputPage
*/
private function getMockOutputPage( $isSyndicated, $html ) {
- $mock = $this->getMock( OutputPage::class );
+ $mock = $this->getMockBuilder( OutputPage::class )
+ ->disableOriginalConstructor()
+ ->getMock();
$mock->expects( $this->once() )
->method( 'isSyndicated' )
->will( $this->returnValue( $isSyndicated ) );
$mock->expects( $this->once() )
->method( 'isSyndicated' )
->will( $this->returnValue( $isSyndicated ) );