Changeset 10972 for trunk/tests/phpunit/testcases/core/functions.php
- Timestamp:
- 07/30/2016 12:32:04 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/functions.php
r10470 r10972 722 722 $this->assertContains( $link_color, $result ); 723 723 } 724 725 /** 726 * @group bp_core_add_page_mappings 727 */ 728 public function test_bp_core_add_page_mappings() { 729 $bp = buddypress(); 730 $reset_bp_pages = $bp->pages; 731 732 $expected = array( 'activity', 'groups', 'members' ); 733 if ( is_multisite() ) { 734 $expected = array( 'activity', 'blogs', 'groups', 'members' ); 735 } 736 737 bp_core_add_page_mappings( $bp->active_components ); 738 $bp_pages = array_keys( bp_get_option( 'bp-pages' ) ); 739 sort( $bp_pages ); 740 741 $this->assertEquals( $expected, $bp_pages ); 742 743 $bp->pages = $reset_bp_pages; 744 } 724 745 }
Note: See TracChangeset
for help on using the changeset viewer.