mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
Merge "Remove unused private method from CiteDbTest"
This commit is contained in:
commit
51308066fa
|
@ -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 );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue