WP_TESTS_DIR

This commit is contained in:
Mike Jolley 2019-06-11 11:59:49 +01:00
parent 584d46989f
commit e939c870ce
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class Bootstrap {
$this->plugin_dir = dirname( $this->tests_dir ); $this->plugin_dir = dirname( $this->tests_dir );
$this->plugins_dir = dirname( $this->plugin_dir ); $this->plugins_dir = dirname( $this->plugin_dir );
$this->wc_tests_dir = $this->plugins_dir . '/woocommerce/tests'; $this->wc_tests_dir = $this->plugins_dir . '/woocommerce/tests';
$this->wp_tests_dir = getenv( 'WP_TESTS_DIR' ); $this->wp_tests_dir = getenv( 'WP_TESTS_DIR' ) ? getenv( 'WP_TESTS_DIR' ) : rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib';
$this->setup_hooks(); $this->setup_hooks();
$this->load_framework(); $this->load_framework();