WordPress.org

Make WordPress Core

Ticket #21495: 21495.test.patch

File 21495.test.patch, 562 bytes (added by ancawonka, 9 years ago)

properly annoted and put in its own test function

  • tests/user.php

     
    266266                $this->assertEquals( $user->user_login, $user5->user_login );
    267267        }
    268268
     269        /**
     270         * @ticket 21495
     271         */
     272         
     273        function test_wp_create_user_empty_password(){
     274                $user_id = wp_create_user( 'foobar', '', 'email@example48.com' );
     275                $this->assertInstanceOf( 'WP_Error', $user_id );
     276
     277        }
     278
    269279        function test_get() {
    270280                $user_id = $this->factory->user->create( array(
    271281                        'role' => 'author',