Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/25/2016 10:10:31 AM (8 years ago)
Author:
netweb
Message:

Tests: Following r6078 update tests in ::BBP_Tests_Users_Template_User to use single user slug users

See #2983

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/users/template/user.php

    r5947 r6080  
    127127        $this->set_permalink_structure( '/%postname%/' );
    128128
    129         $profile_link      = '<a href="http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/" rel="nofollow">' . $display_name . '</a>';
     129        $profile_link      = '<a href="http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/" rel="nofollow">' . $display_name . '</a>';
    130130        $user_profile_link = bbp_get_user_profile_link( $this->keymaster_id );
    131131
     
    176176        // Pretty permalinks
    177177        $this->set_permalink_structure( '/%postname%/' );
    178         $profile_url      = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/';
     178        $profile_url      = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/';
    179179        $user_profile_url = bbp_get_user_profile_url( $this->keymaster_id );
    180180
     
    211211        // Pretty permalinks
    212212        $this->set_permalink_structure( '/%postname%/' );
    213         $profile_edit_link      = '<a href="http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/edit/" rel="nofollow">' . $display_name . '</a>';
     213        $profile_edit_link      = '<a href="http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/edit/" rel="nofollow">' . $display_name . '</a>';
    214214        $user_profile_edit_link = bbp_get_user_profile_edit_link( $this->keymaster_id );
    215215
     
    243243        // Pretty permalinks
    244244        $this->set_permalink_structure( '/%postname%/' );
    245         $profile_edit_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/edit/';
     245        $profile_edit_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/edit/';
    246246
    247247        // Output.
     
    267267        // Pretty permalinks
    268268        $this->set_permalink_structure( '/%postname%/' );
    269         $profile_edit_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/edit/';
     269        $profile_edit_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/edit/';
    270270
    271271        // String.
     
    372372        // Pretty permalinks
    373373        $this->set_permalink_structure( '/%postname%/' );
    374         $favorites_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/favorites/';
     374        $favorites_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/favorites/';
    375375
    376376        // Output.
     
    396396        // Pretty permalinks
    397397        $this->set_permalink_structure( '/%postname%/' );
    398         $favorites_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/favorites/';
     398        $favorites_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/favorites/';
    399399
    400400        // String.
     
    428428        // Pretty permalinks
    429429        $this->set_permalink_structure( '/%postname%/' );
    430         $subscriptions_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/subscriptions/';
     430        $subscriptions_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/subscriptions/';
    431431
    432432        // Output.
     
    452452        // Pretty permalinks
    453453        $this->set_permalink_structure( '/%postname%/' );
    454         $subscriptions_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/subscriptions/';
     454        $subscriptions_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/subscriptions/';
    455455
    456456        // String.
     
    561561        // Pretty permalinks
    562562        $this->set_permalink_structure( '/%postname%/' );
    563         $topics_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/topics/';
     563        $topics_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/topics/';
    564564
    565565        // Output.
     
    585585        // Pretty permalinks
    586586        $this->set_permalink_structure( '/%postname%/' );
    587         $topics_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/topics/';
     587        $topics_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/topics/';
    588588
    589589        // String.
     
    605605        // Pretty permalinks
    606606        $this->set_permalink_structure( '/%postname%/' );
    607         $replies_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/replies/';
     607        $replies_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/replies/';
    608608
    609609        // Output.
     
    629629        // Pretty permalinks
    630630        $this->set_permalink_structure( '/%postname%/' );
    631         $replies_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/replies/';
     631        $replies_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/replies/';
    632632
    633633        // String.
     
    711711        // Pretty permalinks
    712712        $this->set_permalink_structure( '/%postname%/' );
    713         $author_link = '<a href="http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/" title="View ' . $display_name .
     713        $author_link = '<a href="http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/" title="View ' . $display_name .
    714714            '&#039;s profile" class="bbp-author-avatar" rel="nofollow">' . $wp_avatar .
    715             '</a>&nbsp;<a href="http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/" title="View ' . $display_name .
     715            '</a>&nbsp;<a href="http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/" title="View ' . $display_name .
    716716            '&#039;s profile" class="bbp-author-name" rel="nofollow">' . $display_name . '</a>';
    717717
Note: See TracChangeset for help on using the changeset viewer.