Changeset 13431 for trunk/tests/phpunit/testcases/routing/members.php
- Timestamp:
- 02/24/2023 09:37:44 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/routing/members.php
r13314 r13431 22 22 function test_members_directory() { 23 23 $this->go_to( bp_get_members_directory_permalink() ); 24 $this->assertEquals( bp_get_members_root_slug(), bp_current_component() ); 24 25 $pages = bp_core_get_directory_pages(); 26 $component_id = bp_current_component(); 27 28 $this->assertEquals( bp_get_members_root_slug(), $pages->{$component_id}->slug ); 25 29 } 26 30 … … 28 32 $this->go_to( bp_core_get_user_domain( bp_loggedin_user_id() ) ); 29 33 $this->assertTrue( bp_is_my_profile() ); 30 }31 32 /**33 * @ticket BP647534 */35 public function test_member_directory_when_nested_under_wp_page() {36 $p = self::factory()->post->create( array(37 'post_type' => 'page',38 'post_name' => 'foo',39 ) );40 41 $members_page = get_page_by_path( 'members' );42 43 wp_update_post( array(44 'ID' => $members_page->ID,45 'post_parent' => $p,46 ) );47 48 $members_page_permalink = bp_get_root_domain() . '/foo/members/';49 $this->go_to( $members_page_permalink );50 51 $this->assertTrue( bp_is_members_component() );52 $this->assertEquals( '', bp_current_action() );53 34 } 54 35
Note: See TracChangeset
for help on using the changeset viewer.