diff --git tests/phpunit/testcases/xprofile/functions.php tests/phpunit/testcases/xprofile/functions.php
index b4dcdab..1eba019 100644
|
|
Bar!'; |
570 | 570 | } |
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 | */ |
575 | 609 | public function test_xprofile_insert_field_type_option() { |