Changeset 47198 for trunk/tests/phpunit/wp-mail-real-test.php
- Timestamp:
- 02/06/2020 06:31:22 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/wp-mail-real-test.php
r47122 r47198 11 11 $opts = getopt( $options ); 12 12 } else { 13 include( dirname( __FILE__ ) . '/wp-testlib/getopt.php' );13 require __DIR__ . '/wp-testlib/getopt.php'; 14 14 $opts = getoptParser::getopt( $options ); 15 15 } 16 16 17 define( 'DIR_TESTROOT', realpath( dirname( __FILE__ )) );17 define( 'DIR_TESTROOT', realpath( __DIR__ ) ); 18 18 19 19 define( 'TEST_WP', true ); … … 32 32 ini_set( 'display_errors', true ); 33 33 34 require_once ( DIR_TESTROOT . '/wp-testlib/utils.php' );34 require_once DIR_TESTROOT . '/wp-testlib/utils.php'; 35 35 36 36 // Configure WP. 37 require_once ( DIR_TESTROOT . '/wp-config.php' );37 require_once DIR_TESTROOT . '/wp-config.php'; 38 38 define( 'ABSPATH', realpath( DIR_WP ) . '/' ); 39 39 … … 46 46 define( 'WP_INSTALLING', 1 ); 47 47 $_SERVER['PATH_INFO'] = $_SERVER['SCRIPT_NAME']; // Prevent a warning from some sloppy code in wp-settings.php. 48 require_once ( ABSPATH . 'wp-settings.php' );48 require_once ABSPATH . 'wp-settings.php'; 49 49 50 50 drop_tables(); 51 51 52 require_once ( ABSPATH . 'wp-admin/includes/upgrade.php' );52 require_once ABSPATH . 'wp-admin/includes/upgrade.php'; 53 53 wp_install( WP_BLOG_TITLE, WP_USER_NAME, WP_USER_EMAIL, true ); 54 54
Note: See TracChangeset
for help on using the changeset viewer.