- Timestamp:
- 10/16/2015 09:04:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/wpmuValidateUserSignup.php
r33083 r35225 64 64 65 65 public function test_should_fail_for_existing_user_name() { 66 $u = $this->factory->user->create( array( 'user_login' => 'foo123' ) );66 $u = self::$factory->user->create( array( 'user_login' => 'foo123' ) ); 67 67 $v = wpmu_validate_user_signup( 'foo123', 'foo@example.com' ); 68 68 $this->assertContains( 'user_name', $v['errors']->get_error_codes() ); … … 70 70 71 71 public function test_should_fail_for_existing_user_email() { 72 $u = $this->factory->user->create( array( 'user_email' => 'foo@example.com' ) );72 $u = self::$factory->user->create( array( 'user_email' => 'foo@example.com' ) ); 73 73 $v = wpmu_validate_user_signup( 'foo123', 'foo@example.com' ); 74 74 $this->assertContains( 'user_email', $v['errors']->get_error_codes() );
Note: See TracChangeset
for help on using the changeset viewer.