Changeset 904 in tests for trunk/tests/test_includes_pluggable.php
- Timestamp:
- 07/18/2012 07:01:41 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/test_includes_pluggable.php
r902 r904 270 270 } 271 271 } 272 273 /**274 * @group pluggable275 * @group user276 */277 class TestUserFunction extends WP_UnitTestCase {278 /**279 * @ticket 13317280 */281 function test_get_userdata() {282 $id = $this->factory->user->create( array( 'role' => 'administrator' ) );283 $this->assertFalse( get_userdata( 0 ) );284 $this->assertFalse( get_userdata( '0' ) );285 $this->assertFalse( get_userdata( 'string' ) );286 $this->assertFalse( get_userdata( array( 'array' ) ) );287 }288 }
Note: See TracChangeset
for help on using the changeset viewer.