WordPress.org

Make WordPress Core

Changeset 902 in tests


Ignore:
Timestamp:
07/13/12 18:27:52 (21 months ago)
Author:
nacin
Message:

Additional unit test for get_userdata( '0' ) -- it should return false, same as int(0).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_includes_pluggable.php

    r894 r902  
    282282        $id = $this->factory->user->create( array( 'role' => 'administrator' ) ); 
    283283        $this->assertFalse( get_userdata( 0 ) ); 
     284        $this->assertFalse( get_userdata( '0' ) ); 
    284285        $this->assertFalse( get_userdata( 'string' ) ); 
    285286        $this->assertFalse( get_userdata( array( 'array' ) ) ); 
Note: See TracChangeset for help on using the changeset viewer.