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:
parent
aec2f2654e
commit
95dbca94e1
|
@ -133,6 +133,15 @@ class Tests_Auth extends WP_UnitTestCase {
|
|||
// Password broken by setting it to be too long.
|
||||
$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] );
|
||||
// Wrong Password
|
||||
$this->assertInstanceOf( 'WP_Error', $user );
|
||||
|
|
Loading…
Reference in New Issue