diff --git a/src/Context/FeatureContext.php b/src/Context/FeatureContext.php index fab618e6..dc52df3d 100644 --- a/src/Context/FeatureContext.php +++ b/src/Context/FeatureContext.php @@ -111,6 +111,8 @@ public static function get_vendor_dir() { // We try to detect the vendor folder in the most probable locations. $vendor_locations = [ + // wp-cli/wp-cli-tests is a dependency of the current working dir. + getcwd() . '/vendor', // wp-cli/wp-cli-tests is the root project. dirname( dirname( __DIR__ ) ) . '/vendor', // wp-cli/wp-cli-tests is a dependency.