Fix tests for I7afaa955a4b393ef00b11e420709bd62b84fbc71
authorGergő Tisza <tgr.huwiki@gmail.com>
Wed, 15 Nov 2017 01:58:49 +0000 (17:58 -0800)
committerGergő Tisza <tgr.huwiki@gmail.com>
Wed, 15 Nov 2017 01:58:49 +0000 (17:58 -0800)
Change-Id: Id5a2a9768dc64db5259a5988d645e664163ba234

tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php

index e0ddb0a..5f37078 100644 (file)
@@ -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