- Timestamp:
- 11/03/2017 07:44:10 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/xprofile/class-bp-xprofile-query.php
r11018 r11737 59 59 public function test_translate_field_name_to_field_id() { 60 60 $this->create_fields( 0 ); 61 $f = $this->factory->xprofile_field->create( array(61 $f = self::factory()->xprofile_field->create( array( 62 62 'field_group_id' => $this->group, 63 63 'type' => 'textbox', … … 628 628 629 629 protected function create_fields( $count ) { 630 $this->group = $this->factory->xprofile_group->create();630 $this->group = self::factory()->xprofile_group->create(); 631 631 for ( $i = 0; $i < $count; $i++ ) { 632 $this->fields[] = $this->factory->xprofile_field->create( array(632 $this->fields[] = self::factory()->xprofile_field->create( array( 633 633 'field_group_id' => $this->group, 634 634 'type' => 'textbox', … … 639 639 protected function create_users( $count ) { 640 640 for ( $i = 0; $i < $count; $i++ ) { 641 $this->users[] = $this->factory->user->create();641 $this->users[] = self::factory()->user->create(); 642 642 } 643 643 }
Note: See TracChangeset
for help on using the changeset viewer.