From: Gergő Tisza Date: Wed, 15 Nov 2017 01:58:49 +0000 (-0800) Subject: Fix tests for I7afaa955a4b393ef00b11e420709bd62b84fbc71 X-Git-Tag: 1.31.0-rc.0~1514 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=492431bce57aac2a995ea468a9e273b6423cde81;p=lhc%2Fweb%2Fwiklou.git Fix tests for I7afaa955a4b393ef00b11e420709bd62b84fbc71 Change-Id: Id5a2a9768dc64db5259a5988d645e664163ba234 --- diff --git a/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php b/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php index e0ddb0af37..5f370785f7 100644 --- a/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php +++ b/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php @@ -221,8 +221,12 @@ class LocalPasswordPrimaryAuthenticationProviderTest extends \MediaWikiTestCase $req->password = 'DoesNotExist'; $ret = $provider->beginPrimaryAuthentication( $reqs ); $this->assertEquals( - AuthenticationResponse::newAbstain(), - $provider->beginPrimaryAuthentication( $reqs ) + AuthenticationResponse::FAIL, + $ret->status + ); + $this->assertEquals( + 'wrongpassword', + $ret->message->getKey() ); // Validation failure