Make WordPress Core


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 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_includes_pluggable.php

    r902 r904  
    270270    }
    271271}
    272 
    273 /**
    274  * @group pluggable
    275  * @group user
    276  */
    277 class TestUserFunction extends WP_UnitTestCase {
    278     /**
    279      * @ticket 13317
    280      */
    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.