Skip to content

Commit f288c72

Browse files
authored
Merge pull request #110 from wp-cli/fix/use-correct-src-folder
Use correct `$src` folder for local Composer repository
2 parents 425513c + 731dcf3 commit f288c72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Context/FeatureContext.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -930,9 +930,9 @@ public function composer_add_wp_cli_local_repository() {
930930
mkdir( self::$composer_local_repository );
931931

932932
$env = self::get_process_env_variables();
933-
$src = isset( $env['TRAVIS_BUILD_DIR'] ) ? $env['TRAVIS_BUILD_DIR'] : realpath(
934-
__DIR__ . '/../../wp-cli-tests/'
935-
);
933+
$src = isset( $env['TRAVIS_BUILD_DIR'] )
934+
? $env['TRAVIS_BUILD_DIR']
935+
: realpath( self::get_vendor_dir() . '/../' );
936936

937937
self::copy_dir( $src, self::$composer_local_repository . '/' );
938938
self::remove_dir( self::$composer_local_repository . '/.git' );

0 commit comments

Comments
 (0)