Changeset 50916 for trunk/tests/phpunit/tests/pluggable.php
- Timestamp:
- 05/15/2021 05:36:49 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/pluggable.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pluggable.php
r50790 r50916 329 329 */ 330 330 public function test_get_user_by_should_return_same_instance_as_wp_get_current_user() { 331 // Create a test user 331 // Create a test user. 332 332 $new_user = self::factory()->user->create( array( 'role' => 'subscriber' ) ); 333 333 334 // Set the test user as the current user 334 // Set the test user as the current user. 335 335 $current_user = wp_set_current_user( $new_user ); 336 336 337 // Get the test user using get_user_by() 337 // Get the test user using get_user_by(). 338 338 $from_get_user_by = get_user_by( 'id', $new_user ); 339 339
Note: See TracChangeset
for help on using the changeset viewer.