- Timestamp:
- 03/18/2023 09:42:31 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/groups/class-bp-group-extension.php
r13436 r13437 242 242 $e = new $class_name(); 243 243 244 $this->go_to( bp_get_group_ permalink( $g_obj ) );244 $this->go_to( bp_get_group_url( $g_obj ) ); 245 245 246 246 $e->_register(); … … 266 266 $e = new $class_name(); 267 267 268 $this->go_to( bp_get_group_ permalink( $g_obj ) );268 $this->go_to( bp_get_group_url( $g_obj ) ); 269 269 270 270 $e->_register(); … … 295 295 // Test as non-logged-in user 296 296 $this->set_current_user( 0 ); 297 $this->go_to( bp_get_group_ permalink( $g_obj ) );297 $this->go_to( bp_get_group_url( $g_obj ) ); 298 298 $e->_register(); 299 299 $this->assertFalse( isset( buddypress()->bp_options_nav[ $g_obj->slug ][ $e->slug ] ) ); … … 306 306 $this->set_current_user( $u ); 307 307 $this->add_user_to_group( $u, $g ); 308 $this->go_to( bp_get_group_ permalink( $g_obj ) );308 $this->go_to( bp_get_group_url( $g_obj ) ); 309 309 $e->_register(); 310 310 $this->assertTrue( isset( buddypress()->bp_options_nav[ $g_obj->slug ][ $e->slug ] ) ); … … 340 340 // Test as non-logged-in user 341 341 $this->set_current_user( 0 ); 342 $this->go_to( bp_get_group_ permalink( $g_obj ) );342 $this->go_to( bp_get_group_url( $g_obj ) ); 343 343 $e->_register(); 344 344 $this->assertTrue( isset( buddypress()->bp_options_nav[ $g_obj->slug ][ $e->slug ] ) ); … … 351 351 $this->set_current_user( $u ); 352 352 $this->add_user_to_group( $u, $g ); 353 $this->go_to( bp_get_group_ permalink( $g_obj ) );353 $this->go_to( bp_get_group_url( $g_obj ) ); 354 354 $e->_register(); 355 355 $this->assertTrue( isset( buddypress()->bp_options_nav[ $g_obj->slug ][ $e->slug ] ) ); … … 371 371 ) ); 372 372 $g_obj = groups_get_group( $g ); 373 $this->go_to( bp_get_group_ permalink( $g_obj ) );373 $this->go_to( bp_get_group_url( $g_obj ) ); 374 374 375 375 $this->set_current_user( 0 ); … … 398 398 ) ); 399 399 $g_obj = groups_get_group( $g ); 400 $this->go_to( bp_get_group_ permalink( $g_obj ) );400 $this->go_to( bp_get_group_url( $g_obj ) ); 401 401 402 402 $e1 = new BPTest_Group_Extension_Access_Anyone(); … … 441 441 $this->set_current_user( $u ); 442 442 443 $this->go_to( bp_get_group_ permalink( $g_obj ) );443 $this->go_to( bp_get_group_url( $g_obj ) ); 444 444 445 445 $e1 = new BPTest_Group_Extension_Access_Anyone(); … … 486 486 $this->add_user_to_group( $u, $g ); 487 487 488 $this->go_to( bp_get_group_ permalink( $g_obj ) );488 $this->go_to( bp_get_group_url( $g_obj ) ); 489 489 490 490 $e1 = new BPTest_Group_Extension_Access_Anyone(); … … 533 533 $gm->promote( 'mod' ); 534 534 535 $this->go_to( bp_get_group_ permalink( $g_obj ) );535 $this->go_to( bp_get_group_url( $g_obj ) ); 536 536 537 537 $e1 = new BPTest_Group_Extension_Access_Anyone(); … … 580 580 $gm->promote( 'admin' ); 581 581 582 $this->go_to( bp_get_group_ permalink( $g_obj ) );582 $this->go_to( bp_get_group_url( $g_obj ) ); 583 583 584 584 $e1 = new BPTest_Group_Extension_Access_Anyone(); … … 622 622 $this->set_current_user( 0 ); 623 623 624 $this->go_to( bp_get_group_ permalink( $g_obj ) );624 $this->go_to( bp_get_group_url( $g_obj ) ); 625 625 626 626 $e1 = new BPTest_Group_Extension_Access_Anyone(); … … 664 664 $this->set_current_user( 0 ); 665 665 666 $this->go_to( bp_get_group_ permalink( $g_obj ) );666 $this->go_to( bp_get_group_url( $g_obj ) ); 667 667 668 668 $e1 = new BPTest_Group_Extension_ShowTab_Anyone(); … … 707 707 $this->set_current_user( $u ); 708 708 709 $this->go_to( bp_get_group_ permalink( $g_obj ) );709 $this->go_to( bp_get_group_url( $g_obj ) ); 710 710 711 711 $e1 = new BPTest_Group_Extension_ShowTab_Anyone(); … … 752 752 $this->add_user_to_group( $u, $g ); 753 753 754 $this->go_to( bp_get_group_ permalink( $g_obj ) );754 $this->go_to( bp_get_group_url( $g_obj ) ); 755 755 756 756 $e1 = new BPTest_Group_Extension_ShowTab_Anyone(); … … 799 799 $gm->promote( 'mod' ); 800 800 801 $this->go_to( bp_get_group_ permalink( $g_obj ) );801 $this->go_to( bp_get_group_url( $g_obj ) ); 802 802 803 803 $e1 = new BPTest_Group_Extension_ShowTab_Anyone(); … … 846 846 $gm->promote( 'admin' ); 847 847 848 $this->go_to( bp_get_group_ permalink( $g_obj ) );848 $this->go_to( bp_get_group_url( $g_obj ) ); 849 849 850 850 $e1 = new BPTest_Group_Extension_ShowTab_Anyone(); … … 885 885 $g_obj = groups_get_group( $g ); 886 886 887 $this->go_to( bp_get_group_ permalink( $g_obj ) );887 $this->go_to( bp_get_group_url( $g_obj ) ); 888 888 889 889 $e1 = new BPTest_Group_Extension_Widget_Method(); … … 907 907 $g_obj = groups_get_group( $g ); 908 908 909 $this->go_to( trailingslashit( bp_get_group_permalink( $g_obj ) ) . 'members/' ); 909 $this->go_to( 910 bp_get_group_url( 911 $g_obj, 912 array( 913 'single_item_component' => 'members', 914 ) 915 ) 916 ); 910 917 911 918 $e1 = new BPTest_Group_Extension_Widget_Method(); … … 939 946 bp_register_group_extension( $f_class_name ); 940 947 941 $this->go_to( bp_get_group_ permalink( $g_obj ) );948 $this->go_to( bp_get_group_url( $g_obj ) ); 942 949 $nav = buddypress()->groups->nav->get_secondary( array( 943 950 'parent_slug' => $g_obj->slug ,
Note: See TracChangeset
for help on using the changeset viewer.