Changeset 13433 for trunk/tests/phpunit/testcases/core/class-bp-button.php
- Timestamp:
- 03/07/2023 04:28:08 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/class-bp-button.php
r13314 r13433 6 6 */ 7 7 class BP_Tests_BP_Button extends BP_UnitTestCase { 8 protected $permalink_structure = ''; 9 10 public function set_up() { 11 parent::set_up(); 12 $this->permalink_structure = get_option( 'permalink_structure', '' ); 13 } 14 15 public function tear_down() { 16 $this->set_permalink_structure( $this->permalink_structure ); 17 18 parent::tear_down(); 19 } 20 8 21 /** 9 22 * @group block_self … … 12 25 $u = self::factory()->user->create(); 13 26 $this->set_current_user( $u ); 14 15 $this->go_to( bp_core_get_user_domain( $u ) ); 27 $this->set_permalink_structure( '/%postname%/' ); 28 29 $this->go_to( bp_members_get_user_url( $u ) ); 16 30 17 31 $b = new BP_Button( array( … … 30 44 $u1 = self::factory()->user->create(); 31 45 $this->set_current_user( $u1 ); 46 $this->set_permalink_structure( '/%postname%/' ); 32 47 33 48 $u2 = self::factory()->user->create(); 34 $this->go_to( bp_ core_get_user_domain( $u2 ) );49 $this->go_to( bp_members_get_user_url( $u2 ) ); 35 50 36 51 $b = new BP_Button( array( … … 136 151 137 152 $this->set_current_user( $u1 ); 138 $this->go_to( bp_core_get_user_domain( $u1 ) ); 153 $this->set_permalink_structure( '/%postname%/' ); 154 $this->go_to( bp_members_get_user_url( $u1 ) ); 139 155 140 156 $found = array();
Note: See TracChangeset
for help on using the changeset viewer.