Changeset 13431 for trunk/tests/phpunit/testcases/core/functions.php
- Timestamp:
- 02/24/2023 09:37:44 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/functions.php
r13417 r13431 566 566 restore_current_blog(); 567 567 568 $this->assertFalse( wp_cache_get( 'directory_pages', 'bp ' ) );568 $this->assertFalse( wp_cache_get( 'directory_pages', 'bp_pages' ) ); 569 569 } 570 570 … … 631 631 632 632 /** 633 * @group bp_core_add_root_component634 */635 public function test_add_root_component_not_in_bp_pages() {636 buddypress()->foo = new stdClass;637 buddypress()->foo->id = 'foo';638 buddypress()->foo->slug = 'foo';639 640 bp_core_add_root_component( 'foo' );641 642 $this->assertTrue( in_array( 'foo', buddypress()->add_root ) );643 $this->assertTrue( buddypress()->foo->has_directory );644 $this->assertNotEmpty( buddypress()->loaded_components['foo'] );645 }646 647 /**648 633 * @group bp_core_time_since 649 634 * @group bp_core_current_time … … 841 826 /** 842 827 * @group bp_core_add_page_mappings 843 * @ticket 8187828 * @ticket BP8187 844 829 */ 845 830 public function test_bp_core_add_page_mappings_in_multisite_subdirectory() {
Note: See TracChangeset
for help on using the changeset viewer.