- Timestamp:
- 03/15/2023 08:16:46 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/functions/bpCoreGetDirectoryPageId.php
r12895 r13436 7 7 */ 8 8 class BP_Tests_Core_BpCoreGetDirectoryPageId extends BP_UnitTestCase { 9 protected $permalink_structure = ''; 10 11 public function set_up() { 12 parent::set_up(); 13 $this->permalink_structure = get_option( 'permalink_structure', '' ); 14 } 15 16 public function tear_down() { 17 parent::tear_down(); 18 $this->set_permalink_structure( $this->permalink_structure ); 19 } 20 9 21 public function test_should_fall_back_on_current_component() { 22 $this->set_permalink_structure( '/%postname%/' ); 10 23 $this->go_to( bp_get_activity_directory_permalink() ); 11 24 … … 17 30 18 31 public function test_should_accept_component_override() { 32 $this->set_permalink_structure( '/%postname%/' ); 19 33 $this->go_to( bp_get_activity_directory_permalink() ); 20 34
Note: See TracChangeset
for help on using the changeset viewer.