mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-14 19:30:37 +00:00
Merge "Remove unused ParserOptions from ExtractFormatterTest"
This commit is contained in:
commit
6c36417f4c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue