Changeset 11737 for trunk/tests/phpunit/testcases/routing/activity.php
- Timestamp:
- 11/03/2017 07:44:10 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/routing/activity.php
r9819 r11737 11 11 12 12 $this->old_current_user = get_current_user_id(); 13 $this->set_current_user( $this->factory->user->create( array( 'role' => 'subscriber' ) ) );13 $this->set_current_user( self::factory()->user->create( array( 'role' => 'subscriber' ) ) ); 14 14 } 15 15 … … 28 28 */ 29 29 function test_activity_permalink() { 30 $a = $this->factory->activity->create();31 $activity = $this->factory->activity->get_object_by_id( $a );30 $a = self::factory()->activity->create(); 31 $activity = self::factory()->activity->get_object_by_id( $a ); 32 32 33 33 $url = bp_core_get_user_domain( $activity->user_id ) . bp_get_activity_slug() . '/' . $activity->id . '/';
Note: See TracChangeset
for help on using the changeset viewer.