Fix to make it work on local machines

This commit is contained in:
JeroenSormani 2014-12-21 21:47:59 +01:00
parent 389a829474
commit 9fad3f2171
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class WC_Unit_Tests_Bootstrap {
$this->tests_dir = dirname( __FILE__ ); $this->tests_dir = dirname( __FILE__ );
$this->plugin_dir = dirname( $this->tests_dir ); $this->plugin_dir = dirname( $this->tests_dir );
$this->wp_tests_dir = getenv( 'WP_TESTS_DIR' ) ? getenv( 'WP_TESTS_DIR' ) : $this->plugin_dir . '/tmp/wordpress-tests-lib'; $this->wp_tests_dir = getenv( 'WP_TESTS_DIR' ) ? getenv( 'WP_TESTS_DIR' ) : '/tmp/wordpress-tests-lib';
// load test function so tests_add_filter() is available // load test function so tests_add_filter() is available
require_once( $this->wp_tests_dir . '/includes/functions.php' ); require_once( $this->wp_tests_dir . '/includes/functions.php' );