Changeset 49126
- Timestamp:
- 10/11/2020 03:49:30 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user.php
r49118 r49126 1454 1454 * @ticket 42766 1455 1455 */ 1456 function test_edit_user_blank_p w() {1456 function test_edit_user_blank_password() { 1457 1457 $_POST = array(); 1458 1458 $_GET = array(); … … 1493 1493 $this->assertSame( 'nickname_updated', $user->nickname ); 1494 1494 1495 // Check not to change an old password if a new password contains only spaces. Ticket #42766 1495 // Check not to change an old password if a new password contains only spaces. Ticket #42766. 1496 1496 $user = get_user_by( 'ID', $user_id ); 1497 1497 $old_pass = $user->user_pass; … … 1503 1503 1504 1504 $this->assertInternalType( 'int', $user_id ); 1505 $this->assert Equals( $old_pass, $user->user_pass );1505 $this->assertSame( $old_pass, $user->user_pass ); 1506 1506 1507 1507 // Check updating user with missing second password. … … 1517 1517 1518 1518 // Check updating user with empty password via `check_passwords` action. 1519 add_action( 'check_passwords', array( $this, 'action_check_passwords_blank_p w' ), 10, 2 );1519 add_action( 'check_passwords', array( $this, 'action_check_passwords_blank_password' ), 10, 2 ); 1520 1520 $user_id = edit_user( $user_id ); 1521 remove_action( 'check_passwords', array( $this, 'action_check_passwords_blank_p w' ) );1521 remove_action( 'check_passwords', array( $this, 'action_check_passwords_blank_password' ) ); 1522 1522 1523 1523 $this->assertInternalType( 'int', $user_id ); … … 1526 1526 1527 1527 /** 1528 * Check passwords action for test_edit_user_blank_p w().1529 */ 1530 function action_check_passwords_blank_p w( $user_login, &$pass1 ) {1528 * Check passwords action for test_edit_user_blank_password(). 1529 */ 1530 function action_check_passwords_blank_password( $user_login, &$pass1 ) { 1531 1531 $pass1 = ''; 1532 1532 }
Note: See TracChangeset
for help on using the changeset viewer.