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 "API: Make jsonfm the default output format"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
PasswordTest.php
diff --git
a/tests/phpunit/includes/PasswordTest.php
b/tests/phpunit/includes/PasswordTest.php
index
ceb794b
..
5ad8aca
100644
(file)
--- a/
tests/phpunit/includes/PasswordTest.php
+++ b/
tests/phpunit/includes/PasswordTest.php
@@
-30,4
+30,10
@@
class PasswordTest extends MediaWikiTestCase {
$this->assertFalse( $invalid1->equals( $invalid2 ) );
}
+
+ public function testInvalidPlaintext() {
+ $invalid = User::getPasswordFactory()->newFromPlaintext( null );
+
+ $this->assertInstanceOf( 'InvalidPassword', $invalid );
+ }
}