Skip to content

Commit 0c7ecc8

Browse files
committed
Add behat file in the list of files to be copied scaffolding package tests
1 parent d9f6904 commit 0c7ecc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ScaffoldPackageCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,8 @@ public function package_tests( $args, $assoc_args ) {
674674
$copy_source[ $package_root ]['templates/load-wp-cli.feature'] = $features_dir;
675675
}
676676

677+
$copy_source[ $package_root ]['behat.yml'] = $package_dir;
678+
677679
$travis_tags = [ 'cache', 'env', 'matrix', 'before_install', 'install', 'before_script', 'script' ];
678680
$travis_tag_overwrites = [];
679681
$travis_tag_appends = [];
@@ -698,7 +700,6 @@ public function package_tests( $args, $assoc_args ) {
698700
$copy_source[ $package_root ]['.circleci/config.yml'] = $package_dir . '.circleci/';
699701
} elseif ( 'github' === $assoc_args['ci'] ) {
700702
$copy_source[ $package_root ]['templates/testing.yml'] = $package_dir . '.github/workflows/';
701-
$copy_source[ $package_root ]['behat.yml'] = $package_dir;
702703
}
703704

704705
$files_written = [];

0 commit comments

Comments
 (0)