Changeset 11829 for trunk/tests/phpunit/testcases/members/functions.php
- Timestamp:
- 01/27/2018 04:39:38 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/members/functions.php
r11818 r11829 576 576 ); 577 577 } 578 579 /** 580 * @group bp_core_activate_signup 581 */ 582 public function test_bp_core_activate_signup_should_add_user_role() { 583 $key = 'test'; 584 585 // Create the signup. 586 $this->factory->signup->create( array( 587 'user_login' => 'test', 588 'user_email' => 'test@example.com', 589 'activation_key' => $key, 590 'meta' => array( 591 'field_1' => 'Foo Bar', 592 'password' => 'foobar', 593 ), 594 ) ); 595 596 // Activate user. 597 $user_id = bp_core_activate_signup( $key ); 598 599 // Assert that user has a role. 600 $user = get_userdata( $user_id ); 601 $this->assertNotEmpty( $user->roles ); 602 } 578 603 }
Note: See TracChangeset
for help on using the changeset viewer.