Missing slash

This commit is contained in:
Mike Jolley 2019-06-11 12:10:53 +01:00
parent d50e2426df
commit 411054fb5f
1 changed files with 2 additions and 2 deletions

View File

@ -55,13 +55,13 @@ class Bootstrap {
$this->wp_tests_dir = getenv( 'WP_TESTS_DIR' ) ? getenv( 'WP_TESTS_DIR' ) : rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib';
$this->tests_dir = dirname( __FILE__ );
$this->plugin_dir = dirname( $this->tests_dir );
if ( file_exists( dirname( $this->plugin_dir ) . '/woocommerce/woocommerce.php' ) ) {
// From plugin directory.
$this->plugins_dir = dirname( $this->plugin_dir );
} else {
// Travis.
$this->plugins_dir = getenv( 'WP_CORE_DIR' ) . 'wp-content/plugins';
$this->plugins_dir = getenv( 'WP_CORE_DIR' ) . '/wp-content/plugins';
}
$this->wc_tests_dir = $this->plugins_dir . '/woocommerce/tests';