Changeset 25390
- Timestamp:
- 09/12/2013 05:56:59 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user.php
r25002 r25390 131 131 132 132 // delete one key and check again 133 $key_to_delete = array_pop(array_keys($vals)); 133 $keys = array_keys( $vals ); 134 $key_to_delete = array_pop( $keys ); 134 135 delete_user_meta($user_id, $key_to_delete); 135 136 $out = get_user_meta($user_id); … … 573 574 $this->assertEquals( false, $user ); 574 575 575 $user = WP_User::get_data_by( 'id', $user->user_nicename );576 $user = WP_User::get_data_by( 'id', @$user->user_nicename ); 576 577 $this->assertEquals( false, $user ); 577 578
Note: See TracChangeset
for help on using the changeset viewer.