Remove unused ParserOptions from ExtractFormatterTest

Change-Id: I685b468ad13da73b6273041f6ff068c2d8b730d0
This commit is contained in:
Thiemo Kreuz 2018-06-28 20:44:28 +02:00
parent f607ff8d6c
commit 9f99628c1f

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