- Timestamp:
- 03/20/2018 07:06:09 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/wpmuValidateUserSignup.php
r42343 r42858 61 61 $v = wpmu_validate_user_signup( 'foo123', 'foo@example.com' ); 62 62 $this->assertContains( 'user_email', $v['errors']->get_error_codes() ); 63 } 64 65 public function test_should_not_fail_for_emails_from_whitelisted_domains_with_mixed_case() { 66 $domains = array( 'foo.com', 'bar.org' ); 67 update_site_option( 'limited_email_domains', $domains ); 68 69 $v = wpmu_validate_user_signup( 'foo123', 'foo@BAR.org' ); 70 $this->assertNotContains( 'user_email', $v['errors']->get_error_codes() ); 63 71 } 64 72
Note: See TracChangeset
for help on using the changeset viewer.