diff --git a/features/scaffold-block.feature b/features/scaffold-block.feature index 4164e6e2..62a158cb 100644 --- a/features/scaffold-block.feature +++ b/features/scaffold-block.feature @@ -5,8 +5,8 @@ Feature: WordPress block code scaffolding Given I run `wp scaffold plugin movies` And I run `wp plugin path movies --dir` And save STDOUT as {PLUGIN_DIR} - Given I run `wp theme install p2 --activate` - And I run `wp theme path p2 --dir` + Given I run `wp theme install twentytwelve --activate --force` + And I run `wp theme path twentytwelve --dir` And save STDOUT as {THEME_DIR} @@ -154,7 +154,7 @@ Feature: WordPress block code scaffolding """ Scenario: Scaffold a block for a specific theme - When I run `wp scaffold block intouchables --theme=p2` + When I run `wp scaffold block intouchables --theme=twentytwelve` Then the {THEME_DIR}/blocks/intouchables.php file should exist And the {THEME_DIR}/blocks/intouchables/index.js file should exist And the {THEME_DIR}/blocks/intouchables/editor.css file should exist @@ -166,7 +166,7 @@ Feature: WordPress block code scaffolding Scenario: Plugin- or theme-specific functions are only used in the correct context When I run `wp scaffold block plugin-block --plugin=movies` - And I run `wp scaffold block theme-block --theme=p2` + And I run `wp scaffold block theme-block --theme=twentytwelve` Then the {PLUGIN_DIR}/blocks/plugin-block.php file should contain: """ plugins_url diff --git a/features/scaffold-theme-tests.feature b/features/scaffold-theme-tests.feature index a405a56e..2dd059cb 100644 --- a/features/scaffold-theme-tests.feature +++ b/features/scaffold-theme-tests.feature @@ -2,45 +2,45 @@ Feature: Scaffold theme unit tests Background: Given a WP install - And I run `wp theme install p2` - And I run `wp scaffold child-theme p2child --parent_theme=p2` + 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 p2child` + When I run `wp scaffold theme-tests t12child` Then STDOUT should not be empty - And the {THEME_DIR}/p2child/tests directory should contain: + And the {THEME_DIR}/t12child/tests directory should contain: """ bootstrap.php test-sample.php """ - And the {THEME_DIR}/p2child/tests/bootstrap.php file should contain: + And the {THEME_DIR}/t12child/tests/bootstrap.php file should contain: """ register_theme_directory( $theme_root ); """ - And the {THEME_DIR}/p2child/tests/bootstrap.php file should contain: + And the {THEME_DIR}/t12child/tests/bootstrap.php file should contain: """ - * @package P2child + * @package T12child """ - And the {THEME_DIR}/p2child/tests/test-sample.php file should contain: + And the {THEME_DIR}/t12child/tests/test-sample.php file should contain: """ - * @package P2child + * @package T12child """ - And the {THEME_DIR}/p2child/bin directory should contain: + And the {THEME_DIR}/t12child/bin directory should contain: """ install-wp-tests.sh """ - And the {THEME_DIR}/p2child/phpunit.xml.dist file should contain: + And the {THEME_DIR}/t12child/phpunit.xml.dist file should contain: """ ./tests/test-sample.php """ - And the {THEME_DIR}/p2child/.phpcs.xml.dist file should exist - And the {THEME_DIR}/p2child/bitbucket-pipelines.yml file should not exist - And the {THEME_DIR}/p2child/.gitlab-ci.yml file should not exist - And the {THEME_DIR}/p2child/.circleci/config.yml file should contain: + 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: @@ -49,7 +49,7 @@ Feature: Scaffold theme unit tests - image: circleci/php:5.6 - image: *mysql_image """ - And the {THEME_DIR}/p2child/.circleci/config.yml file should contain: + And the {THEME_DIR}/t12child/.circleci/config.yml file should contain: """ workflows: version: 2 @@ -63,27 +63,27 @@ Feature: Scaffold theme unit tests - php74-build """ - When I run `wp eval "if ( is_executable( '{THEME_DIR}/p2child/bin/install-wp-tests.sh' ) ) { echo 'executable'; } else { exit( 1 ); }"` + 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/p2child/functions.php file: + Given a wp-content/themes/t12child/functions.php file: """