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:
Daimona Eaytoy 2018-08-16 17:08:13 +00:00
parent 0c496d0118
commit bb476e2c45

View file

@ -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;
}