More tests for [30466]. props xknown.

git-svn-id: https://develop.svn.wordpress.org/trunk@30471 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-11-20 16:10:24 +00:00
parent aec2f2654e
commit 95dbca94e1
1 changed files with 9 additions and 0 deletions

View File

@ -133,6 +133,15 @@ class Tests_Auth extends WP_UnitTestCase {
// Password broken by setting it to be too long. // Password broken by setting it to be too long.
$this->assertEquals( '*', $user->data->user_pass ); $this->assertEquals( '*', $user->data->user_pass );
$user = wp_authenticate( 'password-length-test', '*' );
$this->assertInstanceOf( 'WP_Error', $user );
$user = wp_authenticate( 'password-length-test', '*0' );
$this->assertInstanceOf( 'WP_Error', $user );
$user = wp_authenticate( 'password-length-test', '*1' );
$this->assertInstanceOf( 'WP_Error', $user );
$user = wp_authenticate( 'password-length-test', $passwords[0] ); $user = wp_authenticate( 'password-length-test', $passwords[0] );
// Wrong Password // Wrong Password
$this->assertInstanceOf( 'WP_Error', $user ); $this->assertInstanceOf( 'WP_Error', $user );