From 411054fb5f09508fafc79c5d4a1b2d60d91ac903 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 11 Jun 2019 12:10:53 +0100 Subject: [PATCH] Missing slash --- unit-tests/Bootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unit-tests/Bootstrap.php b/unit-tests/Bootstrap.php index b8a4db86af9..bab9057189e 100755 --- a/unit-tests/Bootstrap.php +++ b/unit-tests/Bootstrap.php @@ -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';