Changeset 14070 for trunk/tests/phpunit/testcases/core/class-bp-button.php
- Timestamp:
- 11/03/2024 06:19:06 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/class-bp-button.php
r13980 r14070 24 24 public function test_block_self_own_profile() { 25 25 $u = self::factory()->user->create(); 26 self::set_current_user( $u );26 wp_set_current_user( $u ); 27 27 $this->set_permalink_structure( '/%postname%/' ); 28 28 … … 43 43 public function test_block_self_others_profile() { 44 44 $u1 = self::factory()->user->create(); 45 self::set_current_user( $u1 );45 wp_set_current_user( $u1 ); 46 46 $this->set_permalink_structure( '/%postname%/' ); 47 47 … … 70 70 ) ); 71 71 72 self::set_current_user( $u1 );72 wp_set_current_user( $u1 ); 73 73 74 74 $found = array(); … … 110 110 ) ); 111 111 112 self::set_current_user( $u1 );112 wp_set_current_user( $u1 ); 113 113 114 114 $found = array(); … … 150 150 ) ); 151 151 152 self::set_current_user( $u1 );152 wp_set_current_user( $u1 ); 153 153 $this->set_permalink_structure( '/%postname%/' ); 154 154 $this->go_to( bp_members_get_user_url( $u1 ) );
Note: See TracChangeset
for help on using the changeset viewer.