mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 15:30:42 +00:00
Fix wrong error message for PHPUnit
We're currently emitting the same error twice, but in one of those cases it's completely wrong. Damned copy&pasting! Bug: T202073 Change-Id: I7687826a85f3ef0abaf15d7cd973afc4e55758b2
This commit is contained in:
parent
0c496d0118
commit
bb476e2c45
|
@ -526,8 +526,8 @@ class AbuseFilterConsequencesTest extends MediaWikiTestCase {
|
|||
// We need to take into account code execution time. 2 seconds should be enough
|
||||
$durationCheck = abs( strtotime( $actualExpiry ) - strtotime( $expectedExpiry ) ) < 2;
|
||||
if ( !$durationCheck ) {
|
||||
$testErrorMessage = 'The expected block option "edittalk" options does not match '.
|
||||
'the actual one.';
|
||||
$testErrorMessage = "The expected block expiry ($expectedExpiry) does not " .
|
||||
"match the actual one ($actualExpiry).";
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue