Feature: Scaffold theme unit tests Background: Given a WP install And I try `wp theme install twentytwelve --force` And I run `wp scaffold child-theme t12child --parent_theme=twentytwelve` When I run `wp theme path` Then save STDOUT as {THEME_DIR} @require-php-7.0 @less-than-php-7.2 @require-mysql Scenario: Scaffold theme tests When I run `wp scaffold theme-tests t12child` Then STDOUT should not be empty And the {THEME_DIR}/t12child/tests directory should contain: """ bootstrap.php test-sample.php """ And the {THEME_DIR}/t12child/tests/bootstrap.php file should contain: """ register_theme_directory( $theme_root ); """ And the {THEME_DIR}/t12child/tests/bootstrap.php file should contain: """ * @package T12child """ And the {THEME_DIR}/t12child/tests/test-sample.php file should contain: """ * @package T12child """ And the {THEME_DIR}/t12child/bin directory should contain: """ install-wp-tests.sh """ And the {THEME_DIR}/t12child/phpunit.xml.dist file should contain: """ ./tests/test-sample.php """ And the {THEME_DIR}/t12child/.phpcs.xml.dist file should exist And the {THEME_DIR}/t12child/bitbucket-pipelines.yml file should not exist And the {THEME_DIR}/t12child/.gitlab-ci.yml file should not exist And the {THEME_DIR}/t12child/.circleci/config.yml file should contain: """ jobs: php56-build: <<: *php_job docker: - image: circleci/php:5.6 - image: *mysql_image """ And the {THEME_DIR}/t12child/.circleci/config.yml file should contain: """ workflows: version: 2 main: jobs: - php56-build - php70-build - php71-build - php72-build - php73-build - php74-build """ When I run `wp eval "if ( is_executable( '{THEME_DIR}/t12child/bin/install-wp-tests.sh' ) ) { echo 'executable'; } else { exit( 1 ); }"` Then STDOUT should be: """ executable """ # Warning: overwriting generated functions.php file, so functions.php file loaded only tests beyond here... Given a wp-content/themes/t12child/functions.php file: """