Changeset 47122 for trunk/tests/phpunit/includes/bootstrap.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r46586 r47122 84 84 $multisite = $multisite || ( defined( 'MULTISITE' ) && MULTISITE ); 85 85 86 // Override the PHPMailer 86 // Override the PHPMailer. 87 87 require_once( dirname( __FILE__ ) . '/mock-mailer.php' ); 88 88 $phpmailer = new MockPHPMailer( true ); … … 115 115 116 116 $GLOBALS['_wp_die_disabled'] = false; 117 // Allow tests to override wp_die 117 // Allow tests to override wp_die(). 118 118 tests_add_filter( 'wp_die_handler', '_wp_die_handler_filter' ); 119 // Use the Spy REST Server instead of default 119 // Use the Spy REST Server instead of default. 120 120 tests_add_filter( 'wp_rest_server_class', '_wp_rest_server_class_filter' ); 121 121 122 122 // Preset WordPress options defined in bootstrap file. 123 // Used to activate themes, plugins, as well as 123 // Used to activate themes, plugins, as well as other settings. 124 124 if ( isset( $GLOBALS['wp_tests_options'] ) ) { 125 125 function wp_tests_options( $value ) { … … 133 133 } 134 134 135 // Load WordPress 135 // Load WordPress. 136 136 require_once ABSPATH . '/wp-settings.php'; 137 137 138 // Delete any default posts & related data 138 // Delete any default posts & related data. 139 139 _delete_all_posts(); 140 140
Note: See TracChangeset
for help on using the changeset viewer.