Rename mention-too-many failure notification.

Change-Id: I49041bd01697ae4c160766f194c92ff3d7a4a989
This commit is contained in:
WMDE-Fisch 2016-07-27 17:04:49 +02:00 committed by Addshore
parent 0815c41560
commit 4c7e5d2669
4 changed files with 5 additions and 5 deletions

View file

@ -443,7 +443,7 @@ $wgEchoNotifications = array(
'section' => 'alert',
'presentation-model' => 'EchoMentionFailurePresentationModel',
),
'mention-too-many' => array(
'mention-failure-too-many' => array(
EchoAttributeManager::ATTR_LOCATORS => array(
array( 'EchoUserLocator::locateEventAgent' ),
),

View file

@ -207,7 +207,7 @@ abstract class EchoDiscussionParser {
if ( $count > $wgEchoMaxMentionsCount ) {
if ( $wgEchoMentionStatusNotifications ) {
EchoEvent::create( array(
'type' => 'mention-too-many',
'type' => 'mention-failure-too-many',
'title' => $title,
'extra' => array(
'max-mentions' => $wgEchoMaxMentionsCount,

View file

@ -88,7 +88,7 @@ class EchoMentionFailurePresentationModel extends EchoEventPresentationModel {
}
private function isTooManyMentionsFailure() {
return $this->getType() === 'mention-too-many';
return $this->getType() === 'mention-failure-too-many';
}
private function getMaxMentions() {

View file

@ -354,7 +354,7 @@ class EchoDiscussionParserTest extends MediaWikiTestCase {
public function testGenerateEventsForRevision_tooManyMentionsFailure() {
$expected = array(
array(
'type' => 'mention-too-many',
'type' => 'mention-failure-too-many',
'agent' => 'Admin',
'max-mentions' => 5,
),
@ -377,7 +377,7 @@ class EchoDiscussionParserTest extends MediaWikiTestCase {
$this->setMwGlobals( array(
// enable mention failure and success notifications
'wgEchoMentionStatusNotifications' => true,
// lower limit for the mention-too-many notification
// lower limit for the mention-failure-too-many notification
'wgEchoMaxMentionsCount' => 5
) );