diff --git tests/phpunit/tests/rest-api/rest-users-controller.php tests/phpunit/tests/rest-api/rest-users-controller.php
index ba101e79d..4f5edcf35 100644
|
|
|
class WP_Test_REST_Users_Controller extends WP_Test_REST_Controller_Testcase { |
| 2111 | 2111 | if ( 'edit' !== $context ) { |
| 2112 | 2112 | $this->assertArrayNotHasKey( 'roles', $data ); |
| 2113 | 2113 | $this->assertArrayNotHasKey( 'capabilities', $data ); |
| 2114 | | $this->assertArrayNotHasKey( 'registered_date', $data ); |
| | 2114 | $this->assertArrayNotHasKey( 'registered', $data ); |
| 2115 | 2115 | $this->assertArrayNotHasKey( 'first_name', $data ); |
| 2116 | 2116 | $this->assertArrayNotHasKey( 'last_name', $data ); |
| 2117 | 2117 | $this->assertArrayNotHasKey( 'nickname', $data ); |
| 2118 | | $this->assertArrayNotHasKey( 'email', $data ); |
| 2119 | 2118 | $this->assertArrayNotHasKey( 'extra_capabilities', $data ); |
| 2120 | 2119 | $this->assertArrayNotHasKey( 'username', $data ); |
| 2121 | | $this->assertArrayNotHasKey( 'locale', $data ); |
| 2122 | 2120 | } |
| 2123 | 2121 | |
| 2124 | 2122 | $this->assertEqualSets( array( |