Merge "Remove unused ParserOptions from ExtractFormatterTest"

This commit is contained in:
jenkins-bot 2018-07-01 23:37:27 +00:00 committed by Gerrit Code Review
commit 6c36417f4c

View file

@ -4,7 +4,6 @@ namespace TextExtracts\Test;
use MediaWiki\MediaWikiServices;
use MediaWikiTestCase;
use ParserOptions;
use TextExtracts\ExtractFormatter;
/**
@ -16,7 +15,6 @@ class ExtractFormatterTest extends MediaWikiTestCase {
* @dataProvider provideExtracts
*/
public function testExtracts( $expected, $text, $plainText ) {
$po = new ParserOptions();
$config = MediaWikiServices::getInstance()->getConfigFactory()->makeConfig( 'textextracts' );
$fmt = new ExtractFormatter( $text, $plainText, $config );
// .metadata class will be added via $wgExtractsRemoveClasses on WMF