Changeset 49118 for trunk/tests/phpunit/tests/user.php
- Timestamp:
- 10/10/2020 04:49:35 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user.php
r48939 r49118 1452 1452 * 1453 1453 * @ticket 35715 1454 * @ticket 42766 1454 1455 */ 1455 1456 function test_edit_user_blank_pw() { … … 1492 1493 $this->assertSame( 'nickname_updated', $user->nickname ); 1493 1494 1495 // Check not to change an old password if a new password contains only spaces. Ticket #42766 1496 $user = get_user_by( 'ID', $user_id ); 1497 $old_pass = $user->user_pass; 1498 $_POST['pass2'] = ' '; 1499 $_POST['pass1'] = ' '; 1500 1501 $user_id = edit_user( $user_id ); 1502 $user = get_user_by( 'ID', $user_id ); 1503 1504 $this->assertInternalType( 'int', $user_id ); 1505 $this->assertEquals( $old_pass, $user->user_pass ); 1506 1494 1507 // Check updating user with missing second password. 1495 1508 $_POST['nickname'] = 'nickname_updated2';
Note: See TracChangeset
for help on using the changeset viewer.