Changeset 7826
- Timestamp:
- 10/04/2026 11:38:49 PM (3 weeks ago)
- Location:
- trunk/tests/phpunit/testcases
- Files:
-
- 9 edited
-
extend/buddypress/activity.php (modified) (2 diffs)
-
extend/buddypress/groups.php (modified) (5 diffs)
-
forums/template/feeds.php (modified) (2 diffs)
-
forums/template/forum.php (modified) (3 diffs)
-
forums/template/get-last-thing.php (modified) (3 diffs)
-
replies/template/reply.php (modified) (2 diffs)
-
topics/template/get-last-thing.php (modified) (2 diffs)
-
topics/template/links.php (modified) (2 diffs)
-
topics/template/topic.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/extend/buddypress/activity.php
r7743 r7826 614 614 // See https://bbpress.trac.wordpress.org/ticket/2794. 615 615 // See https://bbpress.trac.wordpress.org/ticket/3089. 616 $this->markTestSkipped( ' Skipping dynamic group activity action tests.' );616 $this->markTestSkipped( 'Dynamic actions are not registered for group forum activity; see #3089.' ); 617 617 618 618 $g = $this->bp_factory->group->create(); … … 680 680 // See https://bbpress.trac.wordpress.org/ticket/2794. 681 681 // See https://bbpress.trac.wordpress.org/ticket/3089. 682 $this->markTestSkipped( ' Skipping dynamic group activity action tests.' );682 $this->markTestSkipped( 'Dynamic actions are not registered for group forum activity; see #3089.' ); 683 683 684 684 $g = $this->bp_factory->group->create(); -
trunk/tests/phpunit/testcases/extend/buddypress/groups.php
r7723 r7826 123 123 124 124 $_SERVER['REQUEST_METHOD'] = 'POST'; 125 $_SERVER['HTTP_HOST'] = wp_parse_url( home_url(), PHP_URL_HOST ); 126 $_SERVER['REQUEST_URI'] = '/'; 125 $this->set_request_url(); 127 126 $_REQUEST['_wpnonce'] = wp_create_nonce( 'groups_edit_save_forum' ); 128 127 $_POST['bbp-edit-group-forum'] = '1'; … … 147 146 148 147 $_SERVER['REQUEST_METHOD'] = 'POST'; 149 $_SERVER['HTTP_HOST'] = wp_parse_url( home_url(), PHP_URL_HOST ); 150 $_SERVER['REQUEST_URI'] = '/'; 148 $this->set_request_url(); 151 149 $_REQUEST['_wpnonce'] = wp_create_nonce( 'groups_edit_save_forum' ); 152 150 $_POST['bbp-edit-group-forum'] = '1'; … … 678 676 679 677 protected function submit_forum_edit( $forum_id, $parent_id ) { 680 $home_url = wp_parse_url( home_url( '/' ) ); 681 $_SERVER['HTTP_HOST'] = $home_url['host']; 682 683 if ( isset( $home_url['port'] ) ) { 684 $_SERVER['HTTP_HOST'] .= ':' . $home_url['port']; 685 } 686 687 $_SERVER['REQUEST_URI'] = $home_url['path']; 678 $this->set_request_url(); 688 679 $_POST = array( 689 680 'bbp_forum_id' => $forum_id, … … 713 704 714 705 remove_filter( 'wp_redirect', $prevent_redirect ); 706 } 707 708 protected function set_request_url() { 709 $home_url = wp_parse_url( home_url( '/' ) ); 710 $_SERVER['HTTP_HOST'] = $home_url['host']; 711 712 if ( isset( $home_url['port'] ) ) { 713 $_SERVER['HTTP_HOST'] .= ':' . $home_url['port']; 714 } 715 716 $_SERVER['REQUEST_URI'] = $home_url['path']; 715 717 } 716 718 … … 800 802 bbp_add_moderator( $forum_id, $moderator_id ); 801 803 bbp_update_group_forum_ids( $group_id, array( $forum_id, $post_id ) ); 804 buddypress()->is_single_item = true; 802 805 $this->set_group_context( $group_id, $user_id ); 803 806 -
trunk/tests/phpunit/testcases/forums/template/feeds.php
r5947 r7826 15 15 */ 16 16 public function test_bbp_get_forum_topics_feed_link() { 17 18 if ( is_multisite() ) {19 $this->markTestSkipped( 'Skipping URL tests in multiste for now.' );20 }21 17 22 18 $f = $this->factory->forum->create( array( … … 38 34 public function test_bbp_get_forum_replies_feed_link() { 39 35 40 if ( is_multisite() ) {41 $this->markTestSkipped( 'Skipping URL tests in multiste for now.' );42 }43 44 36 $f = $this->factory->forum->create( array( 45 37 'post_title' => 'Forum 1', -
trunk/tests/phpunit/testcases/forums/template/forum.php
r7775 r7826 43 43 */ 44 44 public function test_bbp_get_forum_permalink() { 45 46 if ( is_multisite() ) {47 $this->markTestSkipped( 'Skipping URL tests in multiste for now.' );48 }49 45 50 46 // Public category. … … 182 178 */ 183 179 public function test_bbp_get_forum_freshness_link() { 184 185 if ( is_multisite() ) {186 $this->markTestSkipped( 'Skipping URL tests in multiste for now.' );187 }188 180 189 181 $now = time(); … … 403 395 */ 404 396 public function test_bbp_get_forum_freshness_link_with_unpublished_replies() { 405 406 if ( is_multisite() ) {407 $this->markTestSkipped( 'Skipping URL tests in multiste for now.' );408 }409 397 410 398 $now = time(); -
trunk/tests/phpunit/testcases/forums/template/get-last-thing.php
r7770 r7826 373 373 */ 374 374 public function test_bbp_get_forum_last_topic_permalink() { 375 if ( is_multisite() ) {376 $this->markTestSkipped( 'Skipping URL tests in multisite for now.' );377 }378 379 375 $c = $this->factory->forum->create( array( 380 376 'forum_meta' => array( … … 464 460 * @covers ::bbp_get_forum_last_topic_author_link */ 465 461 public function test_bbp_get_forum_last_topic_author_link() { 466 if ( is_multisite() ) {467 $this->markTestSkipped( 'Skipping URL tests in multisite for now.' );468 }469 470 462 $u = $this->factory->user->create(); 471 463 … … 769 761 */ 770 762 public function test_bbp_get_forum_last_reply_author_link() { 771 if ( is_multisite() ) {772 $this->markTestSkipped( 'Skipping URL tests in multisite for now.' );773 }774 775 763 $u = $this->factory->user->create(); 776 764 -
trunk/tests/phpunit/testcases/replies/template/reply.php
r7784 r7826 55 55 */ 56 56 public function test_bbp_get_reply_permalink() { 57 if ( is_multisite() ) {58 $this->markTestSkipped( 'Skipping URL tests in multiste for now.' );59 }60 57 $f = $this->factory->forum->create(); 61 58 $t = $this->factory->topic->create( array( … … 89 86 */ 90 87 public function test_bbp_get_reply_url() { 91 if ( is_multisite() ) {92 $this->markTestSkipped( 'Skipping URL tests in multisite for now.' );93 }94 95 88 $f = $this->factory->forum->create(); 96 89 -
trunk/tests/phpunit/testcases/topics/template/get-last-thing.php
r6436 r7826 144 144 */ 145 145 public function test_bbp_get_topic_last_reply_permalink() { 146 if ( is_multisite() ) {147 $this->markTestSkipped( 'Skipping URL tests in multiste for now.' );148 }149 150 146 $f = $this->factory->forum->create(); 151 147 … … 177 173 */ 178 174 public function test_bbp_get_topic_last_reply_url() { 179 if ( is_multisite() ) {180 $this->markTestSkipped( 'Skipping URL tests in multiste for now.' );181 }182 183 175 $f = $this->factory->forum->create(); 184 176 -
trunk/tests/phpunit/testcases/topics/template/links.php
r7792 r7826 91 91 public function test_bbp_get_topic_freshness_link() { 92 92 93 if ( is_multisite() ) {94 $this->markTestSkipped( 'Skipping URL tests in multiste for now.' );95 }96 97 93 $now = time(); 98 94 $post_date = date( 'Y-m-d H:i:s', $now - 60 * 60 * 100 ); … … 142 138 */ 143 139 public function test_bbp_get_topic_freshness_link_with_unpublished_replies() { 144 145 if ( is_multisite() ) {146 $this->markTestSkipped( 'Skipping URL tests in multiste for now.' );147 }148 140 149 141 $now = time(); -
trunk/tests/phpunit/testcases/topics/template/topic.php
r7783 r7826 53 53 */ 54 54 public function test_bbp_get_topic_permalink() { 55 if ( is_multisite() ) {56 $this->markTestSkipped( 'Skipping URL tests in multiste for now.' );57 }58 55 $f = $this->factory->forum->create(); 59 56 $t = $this->factory->topic->create( array(
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)