Changeset 11737 for trunk/tests/phpunit/testcases/xprofile/activity.php
- Timestamp:
- 11/03/2017 07:44:10 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/xprofile/activity.php
r10276 r11737 41 41 $now_time = date( 'Y-m-d H:i:s', $time ); 42 42 43 $this->factory->activity->create( array(43 self::factory()->activity->create( array( 44 44 'user_id' => $d['u'], 45 45 'component' => buddypress()->profile->id, … … 75 75 $now_time = date( 'Y-m-d H:i:s', $time ); 76 76 77 $this->factory->activity->create( array(77 self::factory()->activity->create( array( 78 78 'user_id' => $d['u'], 79 79 'component' => buddypress()->profile->id, … … 278 278 */ 279 279 public function test_bp_xprofile_format_activity_action_new_avatar() { 280 $u = $this->factory->user->create();281 $a = $this->factory->activity->create( array(280 $u = self::factory()->user->create(); 281 $a = self::factory()->activity->create( array( 282 282 'component' => 'profile', 283 283 'type' => 'new_avatar', … … 297 297 */ 298 298 public function test_bp_xprofile_format_activity_action_updated_profile() { 299 $u = $this->factory->user->create();300 $a = $this->factory->activity->create( array(299 $u = self::factory()->user->create(); 300 $a = self::factory()->activity->create( array( 301 301 'component' => buddypress()->profile->id, 302 302 'type' => 'updated_profile', … … 312 312 313 313 protected function setup_updated_profile_data() { 314 $this->updated_profile_data['u'] = $this->factory->user->create();315 $this->updated_profile_data['g'] = $this->factory->xprofile_group->create();316 $this->updated_profile_data['f'] = $this->factory->xprofile_field->create( array(314 $this->updated_profile_data['u'] = self::factory()->user->create(); 315 $this->updated_profile_data['g'] = self::factory()->xprofile_group->create(); 316 $this->updated_profile_data['f'] = self::factory()->xprofile_field->create( array( 317 317 'field_group_id' => $this->updated_profile_data['g'], 318 318 ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)