Make WordPress Core

Changeset 904 in tests for trunk/tests/user.php


Ignore:
Timestamp:
07/18/2012 07:01:41 PM (12 years ago)
Author:
nacin
Message:

Rename tests to conform to this standard: the class Tests_A_B_C.php should be found in Tests/A/B/C.php.

One class per file. Tests are now organized by general component, rather than by the core file they are found in.

Work in progress. Some classes need to be renamed, and some files still need to be moved (and split up).

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/tests/user.php

    r903 r904  
    55 * @group user
    66 */
    7 class TestWPUser extends WP_UnitTestCase {
     7class Tests_User_User extends WP_UnitTestCase {
    88
    99    protected $_deprecated_errors = array();
     
    506506        $this->assertNull( get_post( $post_id ) );
    507507    }
     508
     509    /**
     510     * @ticket 13317
     511     */
     512    function test_get_userdata() {
     513        $this->assertFalse( get_userdata( 0 ) );
     514        $this->assertFalse( get_userdata( '0' ) );
     515        $this->assertFalse( get_userdata( 'string' ) );
     516        $this->assertFalse( get_userdata( array( 'array' ) ) );
     517    }
    508518}
Note: See TracChangeset for help on using the changeset viewer.