- Timestamp:
- 07/27/2024 04:30:23 PM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/groups/template/bpGroupStatusMessage.php
r13314 r13980 12 12 parent::set_up(); 13 13 $this->current_user = bp_loggedin_user_id(); 14 $this->set_current_user( 0 );14 self::set_current_user( 0 ); 15 15 16 16 if ( isset( $GLOBALS['groups_template'] ) ) { … … 20 20 21 21 public function tear_down() { 22 $this->set_current_user( $this->current_user );22 self::set_current_user( $this->current_user ); 23 23 if ( $this->groups_template ) { 24 24 $GLOBALS['groups_template'] = $this->groups_template; … … 35 35 $g = self::factory()->group->create( array( 'status' => 'private' ) ); 36 36 37 $this->set_current_user( $users[0] );37 self::set_current_user( $users[0] ); 38 38 39 39 groups_invite_user( array( … … 61 61 $g = self::factory()->group->create( array( 'status' => 'private' ) ); 62 62 63 $this->set_current_user( $u );63 self::set_current_user( $u ); 64 64 65 65 if ( bp_has_groups( array( 'include' => array( $g ) ) ) ) { … … 98 98 $g = self::factory()->group->create( array( 'status' => 'private' ) ); 99 99 100 $this->set_current_user( $u );100 self::set_current_user( $u ); 101 101 102 102 groups_send_membership_request( array( … … 123 123 $g = self::factory()->group->create( array( 'status' => 'hidden' ) ); 124 124 125 $this->set_current_user( $u );125 self::set_current_user( $u ); 126 126 127 127 $group = groups_get_group( $g ); … … 140 140 $groups = self::factory()->group->create_many( 2, array( 'status' => 'private' ) ); 141 141 142 $this->set_current_user( $u );142 self::set_current_user( $u ); 143 143 144 144 // Fake the current group.
Note: See TracChangeset
for help on using the changeset viewer.