mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 09:26:05 +00:00
Disable EchoGetEventsForRevision hook handlers while running tests
Extensions using this hook (e.g. DiscussionTools) cause test failures otherwise. Change-Id: I21159d03eebaf46ad94f4273ba698a59b8019185
This commit is contained in:
parent
a0636f75a7
commit
ee860bc577
|
@ -402,6 +402,7 @@ class EchoDiscussionParserTest extends MediaWikiTestCase {
|
|||
// enable pings from summary
|
||||
'wgEchoMaxMentionsInEditSummary' => 5,
|
||||
] );
|
||||
$this->clearHook( 'EchoGetEventsForRevision' );
|
||||
|
||||
EchoDiscussionParser::generateEventsForRevision( $revision, false );
|
||||
|
||||
|
@ -718,6 +719,7 @@ class EchoDiscussionParserTest extends MediaWikiTestCase {
|
|||
$this->setMwGlobals( 'wgEchoMentionStatusNotifications', true );
|
||||
// enable multiple sections mentions
|
||||
$this->setMwGlobals( 'wgEchoMentionsOnMultipleSectionEdits', true );
|
||||
$this->clearHook( 'EchoGetEventsForRevision' );
|
||||
|
||||
EchoDiscussionParser::generateEventsForRevision( $revision, false );
|
||||
|
||||
|
@ -920,6 +922,7 @@ TEXT
|
|||
// lower limit for the mention-failure-too-many notification
|
||||
'wgEchoMaxMentionsCount' => 5
|
||||
] );
|
||||
$this->clearHook( 'EchoGetEventsForRevision' );
|
||||
|
||||
EchoDiscussionParser::generateEventsForRevision( $revision, false );
|
||||
|
||||
|
|
Loading…
Reference in a new issue