diff --git a/features/scaffold-theme-tests.feature b/features/scaffold-theme-tests.feature index 24e76c10..80cc91a8 100644 --- a/features/scaffold-theme-tests.feature +++ b/features/scaffold-theme-tests.feature @@ -18,7 +18,7 @@ Feature: Scaffold theme unit tests """ And the {THEME_DIR}/p2child/tests/bootstrap.php file should contain: """ - register_theme_directory( dirname( $theme_dir ) ); + register_theme_directory( $theme_root ); """ And the {THEME_DIR}/p2child/tests/bootstrap.php file should contain: """ @@ -73,6 +73,45 @@ Feature: Scaffold theme unit tests 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: + """ +