- Timestamp:
- 05/26/2025 12:03:18 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-users-controller.php
r60141 r60251 308 308 309 309 $rest_post_types = array_values( get_post_types( array( 'show_in_rest' => true ), 'names' ) ); 310 311 $this->assertNotEmpty( $users ); 310 312 311 313 foreach ( $users as $user ) { … … 3360 3362 $this->assertSame( $user->roles, $data['roles'] ); 3361 3363 $this->assertSame( get_user_locale( $user ), $data['locale'] ); 3362 } 3363 3364 if ( 'edit' !== $context ) { 3364 } else { 3365 3365 $this->assertArrayNotHasKey( 'roles', $data ); 3366 3366 $this->assertArrayNotHasKey( 'capabilities', $data );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)