buddypress/tests/phpunit/bootstrap.php
Paul Gibbs 52252df95f Grunt: move phpUnit tests into new, top-level tests folder.
This commit is part of a series that will re-organise BuddyPress trunk to use a Grunt build process. See #5160


git-svn-id: https://buddypress.svn.wordpress.org/trunk@8355 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2014-05-04 12:57:55 +00:00

19 lines
570 B
PHP

<?php
require( dirname( __FILE__ ) . '/includes/define-constants.php' );
if ( ! file_exists( WP_TESTS_DIR . '/includes/functions.php' ) ) {
die( "The WordPress PHPUnit test suite could not be found.\n" );
}
require_once WP_TESTS_DIR . '/includes/functions.php';
function _install_and_load_buddypress() {
require BP_TESTS_DIR . '/includes/loader.php';
}
tests_add_filter( 'muplugins_loaded', '_install_and_load_buddypress' );
require WP_TESTS_DIR . '/includes/bootstrap.php';
// Load the BP-specific testing tools
require BP_TESTS_DIR . '/includes/testcase.php';