dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Remove unused function: isStructuredFilterUiEnabledByDefault"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
auth
/
LocalPasswordPrimaryAuthenticationProviderTest.php
diff --git
a/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php
b/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php
index
e0ddb0a
..
5f37078
100644
(file)
--- 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(
$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
);
// Validation failure