From 492431bce57aac2a995ea468a9e273b6423cde81 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerg=C5=91=20Tisza?= Date: Tue, 14 Nov 2017 17:58:49 -0800 Subject: [PATCH] Fix tests for I7afaa955a4b393ef00b11e420709bd62b84fbc71 Change-Id: Id5a2a9768dc64db5259a5988d645e664163ba234 --- .../LocalPasswordPrimaryAuthenticationProviderTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.20.1