Changeset 50935 for trunk/tests/phpunit/tests/user.php
- Timestamp:
- 05/19/2021 10:10:58 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/user.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user.php
r49757 r50935 203 203 foreach ( get_object_vars( $user ) as $key => $value ) { 204 204 $this->assertSame( $value, $user->$key ); 205 } 206 } 207 208 /** 209 * @ticket 53235 210 */ 211 public function test_numeric_properties_should_be_cast_to_ints() { 212 $user = new WP_User( self::$author_id ); 213 $contexts = array( 'raw', 'edit', 'db', 'display', 'attribute', 'js' ); 214 215 foreach ( $contexts as $context ) { 216 $user->filter = $context; 217 $user->init( $user->data ); 218 219 $this->assertInternalType( 'int', $user->ID ); 205 220 } 206 221 }
Note: See TracChangeset
for help on using the changeset viewer.