Changeset 13461 for trunk/tests/phpunit/testcases/routing/root-profiles.php
- Timestamp:
- 04/24/2023 02:32:27 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/routing/root-profiles.php
r13431 r13461 8 8 protected $old_current_user = 0; 9 9 protected $u; 10 protected $permalink_structure = ''; 10 11 11 12 public function set_up() { … … 21 22 $this->u = new WP_User( $uid ); 22 23 $this->set_current_user( $uid ); 24 $this->permalink_structure = get_option( 'permalink_structure', '' ); 23 25 } 24 26 … … 26 28 parent::tear_down(); 27 29 $this->set_current_user( $this->old_current_user ); 30 $this->set_permalink_structure( $this->permalink_structure ); 28 31 remove_filter( 'bp_core_enable_root_profiles', '__return_true' ); 29 32 } 30 33 31 34 public function test_members_directory() { 35 $this->set_permalink_structure( '/%postname%/' ); 32 36 $this->go_to( home_url( bp_get_members_root_slug() ) ); 33 37 … … 39 43 40 44 public function test_member_permalink() { 45 $this->set_permalink_structure( '/%postname%/' ); 41 46 $domain = home_url( $this->u->user_nicename ); 42 47 $this->go_to( $domain ); … … 51 56 */ 52 57 public function test_member_permalink_when_members_page_is_nested_under_wp_page() { 58 $this->set_permalink_structure( '/%postname%/' ); 53 59 $p = self::factory()->post->create( array( 54 60 'post_type' => 'page', … … 71 77 72 78 public function test_member_activity_page() { 79 $this->set_permalink_structure( '/%postname%/' ); 73 80 $url = home_url( $this->u->user_nicename ) . '/' . bp_get_activity_slug(); 74 81 $this->go_to( $url );
Note: See TracChangeset
for help on using the changeset viewer.