mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-14 19:30:37 +00:00
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:
parent
e60c111566
commit
6523ae42dd
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue