buddypress/tests/phpunit/bootstrap.php
Paul Gibbs 0debdd39a2 Tests: new base class for BP_Email tests.
The email posts were being emptied out before the tests run because of the way the unit tests truncate the database tables.

See #6592

git-svn-id: https://buddypress.svn.wordpress.org/trunk@10539 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2016-02-06 19:26:09 +00:00

20 lines
626 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';
require BP_TESTS_DIR . '/includes/testcase-emails.php';