Don't repeat the default in test setup

For a new ParserOptions object, ->setEditSection( true ) is already the
default. Since it's being deprecated in MediaWiki core change
Ied5fe1a61, just remove the call.

Change-Id: Id517a8746d4cc4b0b26a98a74244e4d8c711358c
This commit is contained in:
Brad Jorsch 2017-11-22 15:58:12 -05:00
parent e60c111566
commit 6523ae42dd

View file

@ -16,7 +16,6 @@ class ExtractFormatterTest extends MediaWikiTestCase {
*/
public function testExtracts( $expected, $text, $plainText ) {
$po = new ParserOptions();
$po->setEditSection( true );
$config = MediaWikiServices::getInstance()->getConfigFactory()->makeConfig( 'textextracts' );
$fmt = new ExtractFormatter( $text, $plainText, $config );
$fmt->remove( '.metadata' ); // Will be added via $wgExtractsRemoveClasses on WMF