Merge "API: Make jsonfm the default output format"
[lhc/web/wiklou.git] / tests / phpunit / includes / PasswordTest.php
index ceb794b..5ad8aca 100644 (file)
@@ -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 );
+       }
 }