Skip to:
Content

BuddyPress.org

Changeset 9061


Ignore:
Timestamp:
10/05/2014 09:51:08 PM (6 years ago)
Author:
djpaul
Message:

Tests: update activity tests to use bp_activity_get_permalink to get a link to an activity item rather than manually constructing a link from an activity ID.

See #5926

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/activity/notifications.php

    r8958 r9061  
    4040
    4141        // Go to the activity permalink page
    42         $this->go_to( bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $this->a1 . '/' );
     42        $this->go_to( bp_activity_get_permalink( $this->a1 ) );
    4343        $activity = bp_activity_get_specific( array( 'activity_ids' => $this->a1, 'show_hidden' => true, 'spam' => 'ham_only', ) );
    4444        do_action( 'bp_activity_screen_single_activity_permalink', $activity['activities'][0] );
     
    7070
    7171        // Go to the activity permalink page
    72         $this->go_to( bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $this->a1 . '/' );
     72        $this->go_to( bp_activity_get_permalink( $this->a1 ) );
    7373        $activity = bp_activity_get_specific( array( 'activity_ids' => $this->a1, 'show_hidden' => true, 'spam' => 'ham_only', ) );
    7474        do_action( 'bp_activity_screen_single_activity_permalink', $activity['activities'][0] );
     
    102102
    103103        // Go to the activity permalink page
    104         $this->go_to( bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $this->a1 . '/' );
     104        $this->go_to( bp_activity_get_permalink( $this->a1 ) );
    105105        $activity = bp_activity_get_specific( array( 'activity_ids' => $this->a1, 'show_hidden' => true, 'spam' => 'ham_only', ) );
    106106        do_action( 'bp_activity_screen_single_activity_permalink', $activity['activities'][0] );
Note: See TracChangeset for help on using the changeset viewer.