Skip to content

Commit

Permalink
Update test paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinSainton committed May 28, 2016
1 parent fba328d commit f6e5a72
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/bootstrap.php
Expand Up @@ -4,15 +4,13 @@

$_tests_dir = getenv('WP_TESTS_DIR');
if ( !$_tests_dir ) $_tests_dir = '/tmp/wordpress-tests-lib';

require_once $_tests_dir . '/includes/functions.php';
require_once $_tests_dir . 'includes/functions.php';

function _manually_load_plugin() {
require dirname( __FILE__ ) . '/../wp-shopping-cart.php';
}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );

ob_start();
require $_tests_dir . '/includes/bootstrap.php';
require $_tests_dir . 'includes/bootstrap.php';
ob_end_clean();

0 comments on commit f6e5a72

Please sign in to comment.