Anomie has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/393281 )
Change subject: Don't repeat the default in test setup
......................................................................
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
---
M tests/phpunit/ExtractFormatterTest.php
1 file changed, 0 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TextExtracts
refs/changes/81/393281/1
diff --git a/tests/phpunit/ExtractFormatterTest.php
b/tests/phpunit/ExtractFormatterTest.php
index 6b0174f..46d60a6 100644
--- a/tests/phpunit/ExtractFormatterTest.php
+++ b/tests/phpunit/ExtractFormatterTest.php
@@ -16,7 +16,6 @@
*/
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
--
To view, visit https://gerrit.wikimedia.org/r/393281
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id517a8746d4cc4b0b26a98a74244e4d8c711358c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TextExtracts
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits