Merge "Remove unused private method from CiteDbTest"

This commit is contained in:
jenkins-bot 2023-07-27 19:02:16 +00:00 committed by Gerrit Code Review
commit 51308066fa

View file

@ -2,10 +2,7 @@
namespace Cite\Tests;
use Cite\Cite;
use Language;
use MediaWiki\MediaWikiServices;
use Parser;
use ParserOptions;
use Title;
@ -46,17 +43,4 @@ class CiteDbTest extends \MediaWikiIntegrationTestCase {
);
}
private function newCite(): Cite {
$mockOptions = $this->createMock( ParserOptions::class );
$mockOptions->method( 'getIsPreview' )->willReturn( false );
$mockOptions->method( 'getIsSectionPreview' )->willReturn( false );
$mockOptions->method( 'getUserLangObj' )->willReturn(
$this->createMock( Language::class ) );
$mockParser = $this->createMock( Parser::class );
$mockParser->method( 'getOptions' )->willReturn( $mockOptions );
$mockParser->method( 'getContentLanguage' )->willReturn(
$this->createMock( Language::class ) );
return new Cite( $mockParser );
}
}