Changeset 13448 for trunk/tests/phpunit/testcases/routing/groups.php
- Timestamp:
- 04/07/2023 07:47:34 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/routing/groups.php
r13433 r13448 75 75 public function test_group_directory_should_404_for_group_types_that_have_no_directory() { 76 76 $this->set_permalink_structure( '/%postname%/' ); 77 bp_ register_member_type( 'foo', array( 'has_directory' => false ) );78 $this->go_to( bp_get_ members_directory_permalink() . 'type/foo/' );79 $this->assert True( is_404() );77 bp_groups_register_group_type( 'taz', array( 'has_directory' => false ) ); 78 $this->go_to( bp_get_groups_directory_permalink() . 'type/taz/' ); 79 $this->assertEmpty( bp_get_current_group_directory_type() ); 80 80 } 81 81 … … 85 85 public function test_group_directory_should_404_for_invalid_group_types() { 86 86 $this->set_permalink_structure( '/%postname%/' ); 87 $this->go_to( bp_get_ members_directory_permalink() . 'type/foo/' );88 $this->assert True( is_404() );87 $this->go_to( bp_get_groups_directory_permalink() . 'type/zat/' ); 88 $this->assertEmpty( bp_get_current_group_directory_type() ); 89 89 } 90 90
Note: See TracChangeset
for help on using the changeset viewer.