Fix to make it work on local machines
This commit is contained in:
parent
389a829474
commit
9fad3f2171
|
@ -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' );
|
||||||
|
|
Loading…
Reference in New Issue