Changeset 47122 for trunk/tests/phpunit/wp-mail-real-test.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/wp-mail-real-test.php
r46586 r47122 6 6 */ 7 7 8 // parse options8 // Parse options. 9 9 $options = 'v:r:d'; 10 10 if ( is_callable( 'getopt' ) ) { … … 28 28 } 29 29 30 // make sure all useful errors are displayed during setup30 // Make sure all useful errors are displayed during setup. 31 31 error_reporting( E_ALL & ~E_DEPRECATED ); 32 32 ini_set( 'display_errors', true ); … … 34 34 require_once( DIR_TESTROOT . '/wp-testlib/utils.php' ); 35 35 36 // configure wp36 // Configure WP. 37 37 require_once( DIR_TESTROOT . '/wp-config.php' ); 38 38 define( 'ABSPATH', realpath( DIR_WP ) . '/' ); 39 39 40 // install wp40 // Install WP. 41 41 define( 'WP_BLOG_TITLE', rand_str() ); 42 42 define( 'WP_USER_NAME', rand_str() ); 43 43 define( 'WP_USER_EMAIL', rand_str() . '@example.com' ); 44 44 45 // initialize wp45 // Initialize WP. 46 46 define( 'WP_INSTALLING', 1 ); 47 $_SERVER['PATH_INFO'] = $_SERVER['SCRIPT_NAME']; // prevent a warning from some sloppy code in wp-settings.php47 $_SERVER['PATH_INFO'] = $_SERVER['SCRIPT_NAME']; // Prevent a warning from some sloppy code in wp-settings.php. 48 48 require_once( ABSPATH . 'wp-settings.php' ); 49 49 … … 53 53 wp_install( WP_BLOG_TITLE, WP_USER_NAME, WP_USER_EMAIL, true ); 54 54 55 // make sure we're installed55 // Make sure we're installed. 56 56 assert( true === is_blog_installed() ); 57 57 … … 60 60 $original_wpdb = $GLOBALS['wpdb']; 61 61 62 // hide warnings during testing, since that's the normal WP behaviour62 // Hide warnings during testing, since that's the normal WP behaviour. 63 63 if ( ! WP_DEBUG ) { 64 64 error_reporting( E_ALL ^ E_NOTICE );
Note: See TracChangeset
for help on using the changeset viewer.