Changeset 6997 for trunk/tests/bootstrap.php
- Timestamp:
- 05/05/2013 07:08:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/bootstrap.php
r6908 r6997 3 3 define( 'BP_PLUGIN_DIR', dirname( dirname( __FILE__ ) ) . '/' ); 4 4 5 if ( ! defined( 'BP_TESTS_DIR' ) ) { 6 define( 'BP_TESTS_DIR', dirname( __FILE__ ) . '/' ); 7 } 8 5 9 require_once getenv( 'WP_TESTS_DIR' ) . '/includes/functions.php'; 6 10 7 11 function _install_and_load_buddypress() { 8 require dirname( __FILE__ ). '/includes/loader.php';12 require BP_TESTS_DIR . '/includes/loader.php'; 9 13 } 10 14 tests_add_filter( 'muplugins_loaded', '_install_and_load_buddypress' ); … … 13 17 14 18 // Load the BP-specific testing tools 15 require dirname( __FILE__ ). '/includes/testcase.php';19 require BP_TESTS_DIR . '/includes/testcase.php';
Note: See TracChangeset
for help on using the changeset viewer.