Changeset 55585 for branches/6.2/tests/phpunit/tests/user.php
- Timestamp:
- 03/23/2023 02:17:39 PM (19 months ago)
- Location:
- branches/6.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.2
-
branches/6.2/tests/phpunit/tests/user.php
r55360 r55585 899 899 900 900 /** 901 * @ticket 57394902 */903 public function test_wp_insert_user_should_reject_user_login_that_matches_existing_user_email() {904 $existing_email = get_option( 'admin_email' );905 $user_id = wp_insert_user(906 array(907 'user_login' => $existing_email,908 'user_email' => 'whatever@example.com',909 'user_pass' => 'whatever',910 'user_nicename' => 'whatever',911 )912 );913 914 $this->assertWPError( $user_id );915 $this->assertSame( 'existing_user_email_as_login', $user_id->get_error_code() );916 }917 918 /**919 901 * @ticket 33793 920 902 */
Note: See TracChangeset
for help on using the changeset viewer.