Changeset 14026 for trunk/tests/phpunit/bootstrap.php
- Timestamp:
- 09/27/2024 09:11:27 PM (15 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/bootstrap.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/bootstrap.php
r13720 r14026 2 2 const WP_TESTS_PHPUNIT_POLYFILLS_PATH = __DIR__ . '/../../vendor/yoast/phpunit-polyfills'; 3 3 4 require ( dirname( __FILE__ ) . '/includes/define-constants.php' );4 require __DIR__ . '/includes/define-constants.php'; 5 5 6 6 if ( ! file_exists( WP_TESTS_DIR . '/includes/functions.php' ) ) { … … 17 17 require WP_TESTS_DIR . '/includes/bootstrap.php'; 18 18 19 // Load the BP-specific testing tools 19 // Load the BP-specific testing tools. 20 20 require BP_TESTS_DIR . '/includes/testcase.php'; 21 21 require BP_TESTS_DIR . '/includes/testcase-emails.php'; 22 require BP_TESTS_DIR . '/includes/testcase-rest-controller.php'; 23 24 /** 25 * Set component visibility. 26 * 27 * @param bool $visibility Visibility. 28 */ 29 function toggle_component_visibility( $visibility = true ) { 30 $visibility = $visibility ? 'members' : 'anyone'; 31 32 update_option( 33 '_bp_community_visibility', 34 array( 35 'global' => $visibility, 36 'activity' => $visibility, 37 'members' => $visibility, 38 'groups' => $visibility, 39 'blogs' => $visibility, 40 ) 41 ); 42 }
Note: See TracChangeset
for help on using the changeset viewer.