Ticket #5376: 5376.2.diff
| File 5376.2.diff, 1.7 KB (added by , 12 years ago) |
|---|
-
tests/phpunit/includes/define-constants.php
22 22 */ 23 23 if ( false !== getenv( 'WP_TESTS_DIR' ) ) { 24 24 define( 'WP_TESTS_DIR', getenv( 'WP_TESTS_DIR' ) ); 25 25 define( 'WP_ROOT_DIR', WP_TESTS_DIR ); 26 26 } else { 27 27 // Support WP_DEVELOP_DIR, as used by some plugins 28 28 if ( false !== getenv( 'WP_DEVELOP_DIR' ) ) { 29 define( 'WP_ TESTS_DIR', getenv( 'WP_DEVELOP_DIR' ) );29 define( 'WP_ROOT_DIR', getenv( 'WP_DEVELOP_DIR' ) ); 30 30 } else { 31 31 define( 'WP_ROOT_DIR', dirname( dirname( dirname( dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) ) ) ) ); 32 32 } 33 33 34 34 define( 'WP_TESTS_DIR', WP_ROOT_DIR . '/tests/phpunit' ); 35 35 } 36 36
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)