buddypress/tests/includes/loader.php
Boone B Gorges 8ee21b0794 Improve compatibility with develop.svn.wordpress.org unit test suite
This changeset ensures that the BP tests can be run from within a
develop.svn.wordpress.org setup. Backward compatibility for custom locations
using the WP_TESTS_DIR environment variable is maintained.

Fixes #5200

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7421 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2013-10-11 18:58:12 +00:00

6 lines
347 B
PHP

<?php
$multisite = (int) ( defined( 'WP_TESTS_MULTISITE') && WP_TESTS_MULTISITE );
system( WP_PHP_BINARY . ' ' . escapeshellarg( dirname( __FILE__ ) . '/install.php' ) . ' ' . escapeshellarg( WP_TESTS_CONFIG_PATH ) . ' ' . escapeshellarg( WP_TESTS_DIR ) . ' ' . $multisite );
// Bootstrap BP
require dirname( __FILE__ ) . '/../../bp-loader.php';