Changeset 8987 for trunk/tests/phpunit/testcases/xprofile/functions.php
- Timestamp:
- 09/07/2014 09:30:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/xprofile/functions.php
r8986 r8987 571 571 572 572 /** 573 * @group xprofile_set_field_data 574 * @ticket BP5836 575 */ 576 public function test_xprofile_sync_bp_profile_new_user() { 577 $post_vars = $_POST; 578 579 $_POST = array( 580 'user_login' => 'foobar', 581 'pass1' => 'password', 582 'pass2' => 'password', 583 'role' => 'subscriber', 584 'email' => 'foo@bar.com', 585 'first_name' => 'Foo', 586 'last_name' => 'Bar', 587 ); 588 589 $id = add_user(); 590 591 $display_name = 'Bar Foo'; 592 593 $_POST = array( 594 'display_name' => $display_name, 595 'email' => 'foo@bar.com', 596 ); 597 598 $id = edit_user( $id ); 599 600 // clean up post vars 601 $_POST = $post_vars; 602 603 $this->assertEquals( $display_name, xprofile_get_field_data( bp_xprofile_fullname_field_id(), $id ) ); 604 } 605 606 /** 573 607 * @group xprofile_insert_field 574 608 */
Note: See TracChangeset
for help on using the changeset viewer.