Ticket #33793: 33793.4.diff
File 33793.4.diff, 858 bytes (added by , 10 years ago) |
---|
-
tests/phpunit/tests/user.php
617 617 /** 618 618 * @ticket 33793 619 619 */ 620 public function test_wp_insert_user_should_accept_user_login_with_60_characters() { 621 $user_login = str_repeat( 'a', 60 ); 622 $u = wp_insert_user( array( 623 'user_login' => $user_login, 624 'user_email' => $user_login . '@example.com', 625 'user_pass' => 'password', 626 'user_nicename' => 'something-short', 627 ) ); 628 629 $this->assertInternalType( "int", $u ); 630 $this->assertGreaterThan( 0, $u ); 631 } 632 633 /** 634 * @ticket 33793 635 */ 620 636 public function test_wp_insert_user_should_reject_user_login_over_60_characters() { 621 637 $user_login = str_repeat( 'a', 61 ); 622 638 $u = wp_insert_user( array(