Changeset 13436 for trunk/tests/phpunit/testcases/members/template/bpGetMemberTypeDirectoryPermalink.php
- Timestamp:
- 03/15/2023 08:16:46 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/members/template/bpGetMemberTypeDirectoryPermalink.php
r13314 r13436 6 6 */ 7 7 class BP_Tests_Members_Template_BpGetMemberTypeDirectoryPermalink extends BP_UnitTestCase { 8 protected $permalink_structure = ''; 9 8 10 public function set_up() { 9 11 parent::set_up(); 10 12 11 13 buddypress()->members->types = array(); 14 $this->permalink_structure = get_option( 'permalink_structure', '' ); 15 } 16 17 public function tear_down() { 18 parent::tear_down(); 19 20 $this->set_permalink_structure( $this->permalink_structure ); 12 21 } 13 22 … … 16 25 */ 17 26 public function test_should_default_to_current_member_type() { 27 $this->set_permalink_structure( '/%postname%/' ); 28 18 29 bp_register_member_type( 'foo', array( 19 30 'has_directory' => true, … … 31 42 */ 32 43 public function test_member_type_param_should_override_current_member_type() { 44 $this->set_permalink_structure( '/%postname%/' ); 45 33 46 bp_register_member_type( 'foo', array( 34 47 'has_directory' => true, … … 71 84 */ 72 85 public function test_successful_format() { 86 $this->set_permalink_structure( '/%postname%/' ); 87 73 88 bp_register_member_type( 'foo', array( 74 89 'has_directory' => true,
Note: See TracChangeset
for help on using the changeset viewer.