phpunit: Fix OutputPage::__construct warning in SkinTemplateTest
https://integration.wikimedia.org/ci/job/mediawiki-core-code-coverage/2562/console > Deprecated: Use of OutputPage::__construct was deprecated in MediaWiki 1.18. > .. SkinTemplateTest->getMockOutputPage() .. Change-Id: I7f44ffecc40b9d972839554361660e5b38ce3aef
This commit is contained in:
parent
2e79c5c616
commit
8fbd1cd1e1
1 changed files with 3 additions and 1 deletions
|
|
@ -44,7 +44,9 @@ class SkinTemplateTest extends MediaWikiTestCase {
|
|||
* @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 ) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue